1
0
Fork 0
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:
Bruce Luckcuck 2018-07-31 10:33:35 -04:00
parent 25c6b038d9
commit 382ad2ad8f
4 changed files with 4 additions and 8 deletions

View file

@ -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