From 08ced4cf38f43e5a593b7cc39ac40418787f9cd8 Mon Sep 17 00:00:00 2001 From: JMoore5353 Date: Mon, 22 Jul 2024 10:00:44 -0600 Subject: [PATCH] added flag to check the combined control mode for passthrough mode --- src/comm_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comm_manager.cpp b/src/comm_manager.cpp index 6f3092fb..6e872c5e 100644 --- a/src/comm_manager.cpp +++ b/src/comm_manager.cpp @@ -350,7 +350,7 @@ void CommManager::send_status(void) if (!initialized_) { return; } uint8_t control_mode = 0; - if (RF_.params_.get_param_int(PARAM_FIXED_WING)) { + if (RF_.params_.get_param_int(PARAM_FIXED_WING) || RF_.command_manager_.combined_control().x.type == PASSTHROUGH) { control_mode = MODE_PASS_THROUGH; } else if (RF_.command_manager_.combined_control().x.type == ANGLE) { control_mode = MODE_ROLL_PITCH_YAWRATE_THROTTLE;