Skip to content

Commit f192818

Browse files
authored
Merge pull request #431 from rosflight/430-firmware-doesnt-support-sending-passthrough-mode-for-multirotors
Firmware doesn't currently print out correct flags for control modes.
2 parents 8831f7b + 08ced4c commit f192818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comm_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ void CommManager::send_status(void)
350350
if (!initialized_) { return; }
351351

352352
uint8_t control_mode = 0;
353-
if (RF_.params_.get_param_int(PARAM_FIXED_WING)) {
353+
if (RF_.params_.get_param_int(PARAM_FIXED_WING) || RF_.command_manager_.combined_control().x.type == PASSTHROUGH) {
354354
control_mode = MODE_PASS_THROUGH;
355355
} else if (RF_.command_manager_.combined_control().x.type == ANGLE) {
356356
control_mode = MODE_ROLL_PITCH_YAWRATE_THROTTLE;

0 commit comments

Comments
 (0)