Skip to content

Commit

Permalink
Merge pull request #431 from rosflight/430-firmware-doesnt-support-se…
Browse files Browse the repository at this point in the history
…nding-passthrough-mode-for-multirotors

Firmware doesn't currently print out correct flags for control modes.
  • Loading branch information
iandareid authored Jul 23, 2024
2 parents 8831f7b + 08ced4c commit f192818
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 f192818

Please sign in to comment.