5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-09 17:38:32 -04:00

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 23882aaab0
commit 767018b1d4

View File

@ -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;
}