mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Fix ESC-Sensor RPM (#13286)
* Fix ESC-Sensor RPM * Fixes per review from KarateBrot * Fixes per review from NerdCopter * Forgot to add init.c
This commit is contained in:
parent
3e5d96158b
commit
90ab9f374b
2 changed files with 10 additions and 7 deletions
|
@ -694,7 +694,7 @@ 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
|
||||
#if defined(USE_DSHOT_TELEMETRY) || defined(USE_ESC_SENSOR)
|
||||
// Initialize the motor frequency filter now that we have a target looptime
|
||||
initDshotTelemetry(gyro.targetLooptime);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue