From aa1548e404a6e3595341aabaaaa674edc825aef9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 12 Sep 2018 14:12:29 +1000 Subject: [PATCH] Plane: fixed throttle when terminated thanks to Michael Thomas for reporting this --- ArduPlane/afs_plane.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ArduPlane/afs_plane.cpp b/ArduPlane/afs_plane.cpp index e60de0a697..96f45f25f0 100644 --- a/ArduPlane/afs_plane.cpp +++ b/ArduPlane/afs_plane.cpp @@ -26,6 +26,7 @@ void AP_AdvancedFailsafe_Plane::terminate_vehicle(void) SRV_Channels::set_output_scaled(SRV_Channel::k_aileron, SERVO_MAX); SRV_Channels::set_output_scaled(SRV_Channel::k_rudder, SERVO_MAX); SRV_Channels::set_output_scaled(SRV_Channel::k_elevator, SERVO_MAX); + SRV_Channels::set_output_limit(SRV_Channel::k_throttle, SRV_Channel::SRV_CHANNEL_LIMIT_MIN); SRV_Channels::set_output_limit(SRV_Channel::k_manual, SRV_Channel::SRV_CHANNEL_LIMIT_TRIM); SRV_Channels::set_output_limit(SRV_Channel::k_none, SRV_Channel::SRV_CHANNEL_LIMIT_TRIM); }