Plane: fixed disarmed PWM output

This commit is contained in:
Andrew Tridgell 2014-01-20 17:34:50 +11:00
parent e8b8cc1a5d
commit 776b999f43

View File

@ -1259,7 +1259,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
}
} else if (packet.param1 == 0.0f) {
if (arming.disarm()) {
if (arming.arming_required() != AP_Arming::YES_ZERO_PWM) {
if (arming.arming_required() == AP_Arming::YES_ZERO_PWM) {
channel_throttle->disable_out();
}
// reset the mission on disarm