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

Apply custom gyro scale factor #8496

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

shota3527
Copy link
Contributor

@shota3527 shota3527 commented Oct 24, 2022

This pr allows applying gyro scale factor in inav firmware

what is gyro scale factor error

Rotation_speed=gyro_scale_factor *gyro_raw_reading
Similar to the accelerometer, gyro_scale_factor needs calibration due to manufacturing error

without calibration it will read angular speed incorrectly, which will result in AHI drift in rolls or flips, the internal state in ahrs always rotates more/less that actual rotation
You can set imu_dcm_kp = 50 to have a look on pure gyro data to see if you have this problem, This is how it looks
https://www.youtube.com/watch?v=hnNc33QCbM8

Fortunately, some gyros already have factory scale factor calibration, such as mpu6000 or icm-20689
But BMI270 do not have a factory scale factor calibration , and it seems like it has some serious errors(as high as 7deg per 360deg) without calibration,This will cause fatal AHI error just after a few rolls or flips

MoreInfo

BMI270 gyro can perform motionless SENS error compensation (CRT) and store them into Non-volatile memory, The calibrated scale factor can be applied automatically on startup. But it is kind of risky and complicate process. And i found manual applying gyro scale with this pr will achieve better accuracy

@shota3527 shota3527 mentioned this pull request Oct 24, 2022
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.

None yet

1 participant