mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
Cycletime Jitter buffer added // Removed reservations in scheduler
This commit is contained in:
parent
0d2bf3184c
commit
06942f574e
5 changed files with 29 additions and 23 deletions
|
@ -135,6 +135,8 @@ static void pidLuxFloat(pidProfile_t *pidProfile, controlRateConfig_t *controlRa
|
|||
int axis, deltaCount;
|
||||
float horizonLevelStrength = 1;
|
||||
|
||||
float dT = (float)targetLooptime * 0.000001f;
|
||||
|
||||
if (!deltaStateIsSet && pidProfile->dterm_lpf_hz) {
|
||||
for (axis = 0; axis < 3; axis++) BiQuadNewLpf(pidProfile->dterm_lpf_hz, &deltaBiQuadState[axis], targetLooptime);
|
||||
deltaStateIsSet = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue