mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-05 22:38:38 +08:00
AP_Arming: move rudder-arming throttle checks up into AP_Arming
This commit is contained in:
1 parent
e9ac62677b
commit
eddcff4e48
1 file changed
+8
@@ -1714,6 +1714,14 @@ bool AP_Arming::arm_checks(AP_Arming::Method method)
|
||||
//parameter disallows rudder arming/disabling
|
||||
return false;
|
||||
}
|
||||
|
||||
// only permit arming if the vehicle isn't being commanded to
|
||||
// move via RC input
|
||||
const auto c = rc().get_throttle_channel();
|
||||
if (c.get_control_in() != 0) {
|
||||
check_failed(true, "Non-zero throttle");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (check_enabled(Check::RC)) {
|
||||
|
||||
Reference in new issue
Block a user