mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 01:48:29 -04:00
Plane: Support unlocking cruise heading with rudder
This commit is contained in:
parent
23882aaab0
commit
767018b1d4
@ -719,8 +719,7 @@ void Plane::update_flight_mode(void)
|
|||||||
roll when heading is locked. Heading becomes unlocked on
|
roll when heading is locked. Heading becomes unlocked on
|
||||||
any aileron or rudder input
|
any aileron or rudder input
|
||||||
*/
|
*/
|
||||||
if ((channel_roll->get_control_in() != 0 ||
|
if (channel_roll->get_control_in() != 0 || channel_rudder->get_control_in() != 0) {
|
||||||
rudder_input != 0)) {
|
|
||||||
cruise_state.locked_heading = false;
|
cruise_state.locked_heading = false;
|
||||||
cruise_state.lock_timer_ms = 0;
|
cruise_state.lock_timer_ms = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user