Skip to content

Commit

Permalink
added flag to check the combined control mode for passthrough mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JMoore5353 committed Jul 22, 2024
1 parent 8831f7b commit 08ced4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/comm_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 08ced4c

Please sign in to comment.