From 4ab24dc015616b89368cad400b5021312920efc5 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Fri, 7 Jun 2024 20:38:36 +0100 Subject: [PATCH] ArduCopter: use new ModeReason::AUX_FUNCTION --- ArduCopter/RC_Channel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/RC_Channel.cpp b/ArduCopter/RC_Channel.cpp index f39366721f..02bc8d7bcf 100644 --- a/ArduCopter/RC_Channel.cpp +++ b/ArduCopter/RC_Channel.cpp @@ -144,7 +144,7 @@ void RC_Channel_Copter::do_aux_function_change_mode(const Mode::Number mode, switch(ch_flag) { case AuxSwitchPos::HIGH: { // engage mode (if not possible we remain in current flight mode) - copter.set_mode(mode, ModeReason::RC_COMMAND); + copter.set_mode(mode, ModeReason::AUX_FUNCTION); break; } default: @@ -163,7 +163,7 @@ bool RC_Channel_Copter::do_aux_function(const AUX_FUNC ch_option, const AuxSwitc case AUX_FUNC::FLIP: // flip if switch is on, positive throttle and we're actually flying if (ch_flag == AuxSwitchPos::HIGH) { - copter.set_mode(Mode::Number::FLIP, ModeReason::RC_COMMAND); + copter.set_mode(Mode::Number::FLIP, ModeReason::AUX_FUNCTION); } break;