Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update IMU gyro and D term filter defaults #9070

Merged
merged 1 commit into from
Mar 13, 2018
Merged

Conversation

bkueng
Copy link
Member

@bkueng bkueng commented Mar 13, 2018

This sets IMU_GYRO_CUTOFF to 80 and enables the D-term filter by setting MC_DTERM_CUTOFF to 30.

Tested on at least 5 different vehicles, including AeroFC. The values should be conservative, good setups (with low vibrations) can increase these values even further.

Increasing IMU_GYRO_CUTOFF allows for better tuning gains.
The next step is to disable/adjust the on-chip filter (#8731).

Fixes #8962.

tested on at least 5 different vehicles, including AeroFC. The values
should be conservative, good setups (with low vibrations) can increase
these values even further.

increasing IMU_GYRO_CUTOFF allows for better tuning gains (increased P).
@LorenzMeier LorenzMeier merged commit 2bcc5cf into master Mar 13, 2018
@LorenzMeier LorenzMeier deleted the imu_filter_defaults branch March 13, 2018 19:54
bkueng added a commit that referenced this pull request Apr 24, 2018
The description of IMU_GYRO_CUTOFF was incorrectly saying that it only
affects the driver filtering, but in fact it also set the on-chip filter
to the next higher supported value. This patch fixes that.

And because the IMU_GYRO_CUTOFF and not the IMU_ACCEL_CUTOFF was used for
the on-chip filter, after #9070 which sets the default gyro filter to 80,
we were effectively using a dlpf of 98 Hz.
For this reason this patch changes the on-chip cutoff frequency to 98 as
well, so that the overall default behavior is unchanged.
LorenzMeier pushed a commit that referenced this pull request Apr 25, 2018
The description of IMU_GYRO_CUTOFF was incorrectly saying that it only
affects the driver filtering, but in fact it also set the on-chip filter
to the next higher supported value. This patch fixes that.

And because the IMU_GYRO_CUTOFF and not the IMU_ACCEL_CUTOFF was used for
the on-chip filter, after #9070 which sets the default gyro filter to 80,
we were effectively using a dlpf of 98 Hz.
For this reason this patch changes the on-chip cutoff frequency to 98 as
well, so that the overall default behavior is unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants