Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 1868 → Rev 1869

/branches/dongfang_FC_rewrite/controlMixer.c
156,8 → 156,6
int16_t* RC_PRTY = RC_getPRTY();
int16_t* EC_PRTY = EC_getPRTY();
 
DebugOut.Analog[20] = RC_PRTY[CONTROL_THROTTLE];
 
control[PITCH] = RC_PRTY[CONTROL_PITCH] + EC_PRTY[CONTROL_PITCH];
control[ROLL] = RC_PRTY[CONTROL_ROLL] + EC_PRTY[CONTROL_ROLL];
// This can be a CPU time killer if the function implementations are inefficient.
167,7 → 165,6
 
DebugOut.Analog[12] = control[PITCH];
DebugOut.Analog[13] = control[ROLL];
//DebugOut.Analog[26] = controlYaw;
 
if (controlMixer_getSignalQuality() >= SIGNAL_GOOD) {
controlMixer_updateVariables();
181,7 → 178,7
 
// part1a end.
 
/* This is not really necessary with the dead-gap feature on all sticks (see rc.c)
/* This is not really necessary with the dead-band feature on all sticks (see rc.c)
if(staticParams.GlobalConfig & (CFG_COMPASS_ACTIVE | CFG_GPS_ACTIVE)) {
if (controlYaw > 2) controlYaw-= 2;
else if (controlYaw< -2) controlYaw += 2;