From 1e1be590e257df1485095bdfbec165bce06578dd Mon Sep 17 00:00:00 2001 From: Gone4Dirt Date: Tue, 9 Feb 2021 08:56:12 +0000 Subject: [PATCH] Copter: Add ignore pilot yaw option bit --- ArduCopter/mode_smart_rtl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/mode_smart_rtl.cpp b/ArduCopter/mode_smart_rtl.cpp index e47354a64c..911ecb543b 100644 --- a/ArduCopter/mode_smart_rtl.cpp +++ b/ArduCopter/mode_smart_rtl.cpp @@ -82,7 +82,7 @@ void ModeSmartRTL::wait_cleanup_run() void ModeSmartRTL::path_follow_run() { float target_yaw_rate = 0.0f; - if (!copter.failsafe.radio) { + if (!copter.failsafe.radio && g2.smart_rtl.use_pilot_yaw()) { // get pilot's desired yaw rate target_yaw_rate = get_pilot_desired_yaw_rate(channel_yaw->get_control_in()); if (!is_zero(target_yaw_rate)) {