From 767018b1d4bf9f42c6dc342eec61c4971b5ee78a Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Mon, 6 Nov 2017 23:17:30 -0700 Subject: [PATCH] Plane: Support unlocking cruise heading with rudder --- ArduPlane/ArduPlane.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ArduPlane/ArduPlane.cpp b/ArduPlane/ArduPlane.cpp index 55c4625d1b..a7d8113ec5 100644 --- a/ArduPlane/ArduPlane.cpp +++ b/ArduPlane/ArduPlane.cpp @@ -719,8 +719,7 @@ void Plane::update_flight_mode(void) roll when heading is locked. Heading becomes unlocked on any aileron or rudder input */ - if ((channel_roll->get_control_in() != 0 || - rudder_input != 0)) { + if (channel_roll->get_control_in() != 0 || channel_rudder->get_control_in() != 0) { cruise_state.locked_heading = false; cruise_state.lock_timer_ms = 0; }