Plane: Support unlocking cruise heading with rudder

This commit is contained in:
Michael du Breuil 2017-11-06 23:17:30 -07:00 committed by Andrew Tridgell
parent dc85e538e1
commit ec86a30a4d
1 changed files with 1 additions and 2 deletions

View File

@ -715,8 +715,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;
}