mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
ACM: TradHeli
Prevent helis from arming while RSC control is switched on.
This commit is contained in:
parent
95eeda7cf7
commit
b32d7c8b63
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user