Copter: ignore pilot yaw during takeoff with option

This commit is contained in:
Tatsuya Yamaguchi 2021-09-03 15:24:34 +09:00 committed by Randy Mackay
parent 94c771ee74
commit 6d7ef8f436
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ void Mode::auto_takeoff_run()
// process pilot's yaw input
float target_yaw_rate = 0;
if (!copter.failsafe.radio) {
if (!copter.failsafe.radio && copter.flightmode->use_pilot_yaw()) {
// get pilot's desired yaw rate
target_yaw_rate = get_pilot_desired_yaw_rate(channel_yaw->get_control_in());
}