63,8 → 63,7 |
// uint16_t maxControl[2] = { 0, 0 }; |
uint16_t controlActivity = 0; |
int16_t controls[4] = { 0, 0, 0, 0 }; |
//int16_t controlYaw = 0, controlThrottle = 0; |
uint8_t looping = 0; |
//uint8_t looping = 0; |
|
// Internal variables for reading commands made with an R/C stick. |
uint8_t lastCommand = COMMAND_NONE; |
190,13 → 189,13 |
// controlYaw = RC_PRTY[CONTROL_YAW] + EC_PRTY[CONTROL_YAW]; |
|
if (controlMixer_getSignalQuality() >= SIGNAL_GOOD) { |
controlMixer_updateVariables(); |
configuration_applyVariablesToParams(); |
looping = RC_getLooping(looping); |
controlMixer_updateVariables(); |
configuration_applyVariablesToParams(); |
//looping = RC_getLooping(looping); |
} else { // Signal is not OK |
// Could handle switch to emergency flight here. |
// throttle is handled elsewhere. |
looping = 0; |
// looping = 0; |
} |
|
// part1a end. |