We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f244b48 commit e3fecd9Copy full SHA for e3fecd9
platforms/nuttx/src/px4/stm/stm32_common/dshot/dshot.c
@@ -553,7 +553,7 @@ void process_capture_results(uint8_t timer_index, uint8_t channel_index)
553
554
} else {
555
// Convert the period to eRPM
556
- _erpms[output_channel] = (1000000 * 60) / period;
+ _erpms[output_channel] = (1000000 * 60 / 100 + period / 2) / period;
557
}
558
559
// We set it ready anyway, not to hold up other channels when used in round robin.
0 commit comments