mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +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
|
@ -711,8 +711,8 @@ void gyroSetTargetLooptime(uint8_t pidDenom)
|
|||
{
|
||||
activePidLoopDenom = pidDenom;
|
||||
if (gyro.sampleRateHz) {
|
||||
gyro.sampleLooptime = 1e6 / gyro.sampleRateHz;
|
||||
gyro.targetLooptime = activePidLoopDenom * 1e6 / gyro.sampleRateHz;
|
||||
gyro.sampleLooptime = 1e6f / gyro.sampleRateHz;
|
||||
gyro.targetLooptime = activePidLoopDenom * 1e6f / gyro.sampleRateHz;
|
||||
} else {
|
||||
gyro.sampleLooptime = 0;
|
||||
gyro.targetLooptime = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue