mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 12:43:34 +08:00
bdshot per channel, use PWM_TIM param for BDSHOT instead of single parameter to allow per timer bdshot, clean up logic and fix minor bugs, re-init dshot in mixerChanged
This commit is contained in:
@@ -424,8 +424,9 @@ void up_dshot_trigger()
|
||||
io_timer_update_dma_req(timer_index, false);
|
||||
|
||||
// Trigger DMA (DShot Outputs). Only capture compare after the system has had time to boot.
|
||||
if (timer->bidirectional && (hrt_absolute_time() > 3000000)) {
|
||||
static const uint64_t ESC_BOOT_DELAY_US = 3000000;
|
||||
|
||||
if (timer->bidirectional && (hrt_absolute_time() > ESC_BOOT_DELAY_US)) {
|
||||
perf_begin(capture_cycle_perf);
|
||||
stm32_dmastart(timer->dma_handle, dma_burst_finished_callback, &timer->timer_index, false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user