ACM: TradHeli

Prevent helis from arming while RSC control is switched on.
This commit is contained in:
Robert Lefebvre 2012-11-26 19:03:28 -05:00
parent 95eeda7cf7
commit b32d7c8b63

View File

@ -21,6 +21,13 @@ static void arm_motors()
return; return;
} }
#if FRAME_CONFIG == HELI_FRAME
if ((motors.rsc_mode > 0) && (g.rc_8.control_in >= 10)){
arming_counter = 0;
return;
}
#endif // HELI_FRAME
#if TOY_EDF == ENABLED #if TOY_EDF == ENABLED
int16_t tmp = g.rc_1.control_in; int16_t tmp = g.rc_1.control_in;
#else #else