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 311d190494
commit 069749e49c
1 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,13 @@ static void arm_motors()
arming_counter = 0;
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
int16_t tmp = g.rc_1.control_in;