Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2108 → Rev 2109

/branches/dongfang_FC_fixedwing/flight.c
107,9 → 107,9
term[CONTROL_THROTTLE] = controls[CONTROL_THROTTLE];
 
// These params are just left the same in all modes. In MANUAL and RATE the results are ignored anyway.
target[PITCH] += (controls[CONTROL_ELEVATOR] * staticParams.stickIElevator) >> 6;
target[ROLL] += (controls[CONTROL_AILERONS] * staticParams.stickIAilerons) >> 6;
target[YAW] += (controls[CONTROL_RUDDER] * staticParams.stickIRudder) >> 6;
target[PITCH] += (controls[CONTROL_ELEVATOR] * staticParams.stickIElevator) >> 7;
target[ROLL] += (controls[CONTROL_AILERONS] * staticParams.stickIAilerons) >> 7;
target[YAW] += (controls[CONTROL_RUDDER] * staticParams.stickIRudder) >> 7;
 
for (axis = PITCH; axis <= YAW; axis++) {
if (target[axis] > OVER180) {