From b6d852ac13ec649a4c60a9b352ca824c1e2bccb5 Mon Sep 17 00:00:00 2001
From: Andrew Tridgell <andrew@tridgell.net>
Date: Mon, 22 Nov 2021 07:43:58 +1100
Subject: [PATCH] Plane: added QRTL as RCn_OPTION

---
 ArduPlane/RC_Channel.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ArduPlane/RC_Channel.cpp b/ArduPlane/RC_Channel.cpp
index a1e4e928c4..079725ac04 100644
--- a/ArduPlane/RC_Channel.cpp
+++ b/ArduPlane/RC_Channel.cpp
@@ -156,6 +156,7 @@ void RC_Channel_Plane::init_aux_function(const RC_Channel::aux_func_t ch_option,
     case AUX_FUNC::RTL:
     case AUX_FUNC::TAKEOFF:
     case AUX_FUNC::FBWA:
+    case AUX_FUNC::QRTL:
     case AUX_FUNC::FBWA_TAILDRAGGER:
     case AUX_FUNC::FWD_THR:
     case AUX_FUNC::LANDING_FLARE:
@@ -238,6 +239,10 @@ bool RC_Channel_Plane::do_aux_function(const aux_func_t ch_option, const AuxSwit
         do_aux_function_change_mode(Mode::Number::FLY_BY_WIRE_A, ch_flag);
         break;
 
+    case AUX_FUNC::QRTL:
+        do_aux_function_change_mode(Mode::Number::QRTL, ch_flag);
+        break;
+
     case AUX_FUNC::SOARING:
         do_aux_function_soaring_3pos(ch_flag);
         break;