-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Crt for bmi270 #8487
base: master
Are you sure you want to change the base?
Crt for bmi270 #8487
Conversation
This should be implemented as CLI command. It's far too easy to start board multiple times and ruin NVM. |
well... In my opinion, I don't think we need it. What we really need is to correct the OSR4 of the BMI270 so that the cutoff frequency of the LPF is reduced. |
@shota3527 super happy that you took a look at it! You are our hero after pulling the new AHRS off.
Thanks in advance |
I will open a pr on hardware lpf settings separately After the CRT , the gyro scale factor on matekf411TE/bmi270 did improve but still worse than other gyros I own. And the manual adjuststed scale factor by change the scale in inav was better than the CRT result on my bmi270 |
This pr is for reference only, do not merge
This pr performs Component ReTrimming Feature CRT (Fast, motionless SENS Error Compensation)(gyro scale factor calibration) on bmi270 gyro on startup of INAV.
Why it is needed
The internal scale factor of the bmi270 needs to be calibrated, on others gyros, it is often done in the manufacturing process.
Demonstration of gyro scale factor error
https://www.youtube.com/watch?v=hnNc33QCbM8
How to use
Non-volatile memory of the bmi270 only guarantees 10+ writing operations, proceed with caution.
some of the operation might unsafe at current state
After Flashing, Do not move the flight controller in the process.
Power up your FC and wait. Roughly 70s after startup, the calibration value will be stored in the Non-volatile memory of the bmi270.
When the process is finished, you can now connect to FC via the configurator to confirm that.
Disconnect the configurator and enter DFU mode, Then you can flash your FC with any firmware you like.
Notes
seems like manual calibration have better accuracy than this