|
|
|
|
||
|
United States, MI, Brighton
Joined Oct 2012
949 Posts
|
Quote:
|
|
|
||
|
|
||
|
Canada, BC, Coquitlam
Joined Dec 2009
399 Posts
|
Quote:
http://www.hobbyking.com/hobbyking/s...dProduct=27195 |
|
|
||
|
|
|
|
Joined Dec 2006
1,134 Posts
|
i think it should be applying the rev on the correction only and leave the input unaffected in terms of direction.
my v1 code (has changed somewhat since then) does this: output[] is the correction factor (which may be reversed) final servo output ail_out2 is dependent on input ail_in + correction factor. so ail_out2 is always in the same direction as ail_in. Code:
for (i=0; i<3; i++) {
output[i] = ((((int32_t)output[i] * vr_gain[i] >> 7) * stick_gain[i]) >> 8) * master_gain >> 9;
}
// mixer
int16_t tmp0, tmp1, tmp2;
switch (mix_mode) {
case MIX_NORMAL:
ail_out2 = ail_in + output[0];
ele_out2 = ele_in + output[1];
rud_out2 = rud_in + output[2];
break;
|
|
|
|
|
||
|
Joined Dec 2006
1,134 Posts
|
Quote:
what is your usbasp programmer? since you are connecting directly to the chip, i think you need either 1. a usbasp programmer that is capable of operating at 3.3v. the reason is that the vcc (3.3v) line of the atmel chip is also connected to the gyro (itg3205), which can only operate at 3.3v. 2. disconnect the vcc line from the chip adapter and power the rx3s board through the rx. the reason is that you'll use the onboard 3.3v regulator to supply the right voltages. |
|
|
||
|
|
||
|
Canada, BC, Coquitlam
Joined Dec 2009
399 Posts
|
Quote:
http://www.hobbyking.com/hobbyking/s...dProduct=21321 |
|
|
||
|
|
|
|
Joined Dec 2006
1,134 Posts
|
seeking opinions
looking for opinions on device dip switch config for single/dual ailerons. i still plan to support v1 and v2 (since i now have both). my current plan is:
for v1: single aileron mode = ele_sw norm, rud_sw norm use AILR_OUT pin for AUX_IN (master gain) dual aileron mode = ele_sw rev, rud_sw rev use MOSI for AUX_IN use MISO for AILR_IN AILR_OUT remains as AILR_OUT (= AILR_IN + roll correction) delta mode = ele_sw norm, rud_sw rev vtail mode = ele_sw rev, rud_sw norm for v2: single aileron mode = all sw off (default) AILR_OUT is a mirror of AILL_OUT dual aileron mode A = (what sw to detect?) use AUX_IN for AILR_IN (no remote gain possible) dual aileron mode B = (what sw to detect?) use one of the sw (detail_sw?) for AILR_IN (remote gain remains on AUX_IN) delta mode = delta sw on (this precludes the single/dual aileron modes) vtail mode = vtail sw on (this can still include single/dual aileron modes) any suggestions on what is the simplest way to configure via dip switches? the alternate is using the stick to configure. the current WIP code is at https://github.com/noobee/FlightStab...FlightStab.ino if anyone is interested.. |
|
|
|
|
|
|
United States, MI, Brighton
Joined Oct 2012
949 Posts
|
Over here switch reverses both servo direction and correction direction. I am confused on John's observation that error correction was always going the same way regardless of switch. Visually inspecting mine reverses the correction by flipping the switch and reverses servo. I am back to being confused as to why additional tx rev would be needed. Wouldn't a double rev bring us back to same place?
|
|
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sold Flight Stabilization System with Programing Card | Woody_99 | Aircraft - Electric - Helis (FS/W) | 1 | Mar 23, 2012 12:50 PM |
| Sold Flymentor Flight Stabilization with Field Programmer | Woody_99 | Aircraft - General - Radio Equipment (FS/W) | 0 | Mar 17, 2012 07:43 AM |
| Sold Totally Tricked out 400 size with flight stabilization installed, BNF | Woody_99 | Aircraft - Electric - Helis (FS/W) | 2 | Mar 12, 2012 06:56 AM |
| Wanted FY-30A Flight Stabilization System | Casey_S | FPV/RPV - Equipment and Vehicles (FS/W) | 0 | Mar 05, 2012 02:40 PM |