Copter: Guided: When yaw is not specified use default yaw behaviour.

This commit is contained in:
Leonard Hall 2021-12-22 21:16:49 +10:30 committed by Randy Mackay
parent d4eb2c6396
commit b4ec303d74

View File

@ -1023,6 +1023,8 @@ void ModeGuided::set_yaw_state(bool use_yaw, float yaw_cd, bool use_yaw_rate, fl
auto_yaw.set_yaw_angle_rate(yaw_cd * 0.01f, 0.0f);
} else if (use_yaw_rate) {
auto_yaw.set_rate(yaw_rate_cds);
} else {
auto_yaw.set_mode_to_default(false);
}
}