mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
More changes from review & rebase
Simplified disable logic to only use the feature() check in the gyro loop. Changed 2000hz loop time constant to a define.
This commit is contained in:
parent
25c6b038d9
commit
382ad2ad8f
4 changed files with 4 additions and 8 deletions
|
@ -303,8 +303,4 @@ static FAST_CODE_NOINLINE void gyroDataAnalyseUpdate(gyroAnalyseState_t *state,
|
|||
|
||||
state->updateStep = (state->updateStep + 1) % STEP_COUNT;
|
||||
}
|
||||
|
||||
bool dynamicFilterAllowed(void) {
|
||||
return (gyro.targetLooptime <= HZ_TO_INTERVAL_US(2000));
|
||||
}
|
||||
#endif // USE_GYRO_DATA_ANALYSE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue