mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
Dshot RPM Telemetry Refactoring (#13012)
This commit is contained in:
parent
0c9d7e6c50
commit
5769b3021e
22 changed files with 166 additions and 112 deletions
|
@ -54,6 +54,7 @@
|
|||
#include "drivers/camera_control_impl.h"
|
||||
#include "drivers/compass/compass.h"
|
||||
#include "drivers/dma.h"
|
||||
#include "drivers/dshot.h"
|
||||
#include "drivers/exti.h"
|
||||
#include "drivers/flash.h"
|
||||
#include "drivers/inverter.h"
|
||||
|
@ -694,6 +695,11 @@ void init(void)
|
|||
// Now reset the targetLooptime as it's possible for the validation to change the pid_process_denom
|
||||
gyroSetTargetLooptime(pidConfig()->pid_process_denom);
|
||||
|
||||
#ifdef USE_DSHOT_TELEMETRY
|
||||
// Initialize the motor frequency filter now that we have a target looptime
|
||||
initDshotTelemetry(gyro.targetLooptime);
|
||||
#endif
|
||||
|
||||
// Finally initialize the gyro filtering
|
||||
gyroInitFilters();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue