Skip to content

Commit

Permalink
AP_HAL_ChibiOS: add support for disabled mask on iomcu
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per authored and tridge committed Sep 4, 2024
1 parent e5d26a5 commit 7fc6109
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libraries/AP_HAL_ChibiOS/RCOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,11 @@ uint32_t RCOutput::get_disabled_channels(uint32_t digital_mask)
}

disabled_chan_mask <<= chan_offset;
#if HAL_WITH_IO_MCU
if (iomcu_dshot) {
disabled_chan_mask |= iomcu.get_disabled_channels(digital_mask);
}
#endif
return disabled_chan_mask;
}

Expand Down Expand Up @@ -1463,9 +1468,9 @@ void RCOutput::dshot_send_groups(rcout_timer_t cycle_start_us, rcout_timer_t tim
}

for (auto &group : pwm_group_list) {
bool pulse_sent;
bool pulse_sent = false;
// send a dshot command
if (is_dshot_protocol(group.current_mode)
if (group.can_send_dshot_pulse()
&& dshot_command_is_active(group)) {
command_sent = dshot_send_command(group, _dshot_current_command.command, _dshot_current_command.chan);
pulse_sent = true;
Expand Down

0 comments on commit 7fc6109

Please sign in to comment.