mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 19:40:31 +03:00
Make the imuGyroFilter actually filter (#13961)
This commit is contained in:
parent
07bf547d42
commit
ea30a11d1a
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ void gyroInitFilters(void)
|
|||
dynNotchInit(dynNotchConfig(), gyro.targetLooptime);
|
||||
#endif
|
||||
|
||||
const float k = pt1FilterGain(GYRO_IMU_DOWNSAMPLE_CUTOFF_HZ, gyro.targetLooptime);
|
||||
const float k = pt1FilterGain(GYRO_IMU_DOWNSAMPLE_CUTOFF_HZ, gyro.targetLooptime * 1e-6f);
|
||||
for (int axis = 0; axis < XYZ_AXIS_COUNT; axis++) {
|
||||
pt1FilterInit(&gyro.imuGyroFilter[axis], k);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue