-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
ICM426XX - Disable AFSR #933
ICM426XX - Disable AFSR #933
Conversation
Betaflight: Disable ICM426XX AFSR feature to prevent stalls Ardupilot: AP_InertialSensor: fix for ICM42688 stuck gyro issue these undocumented bits in register 0x4d control the "adaptive full scale range" mode of the ICM42688. The feature is enabled by default but has a bug where it gives "stuck" gyro values for short periods (between 1ms and 2ms):, leading to a significant gyro bias at longer time scales, enough to in some cases cause a vehicle to crash if it is unable to switch to an alternative IMU Co-authored-by: Andrew Tridgell <[email protected]> Co-authored-by: Steve Evans <[email protected]> Thanks to all participants here: betaflight/betaflight#12970
This comment was marked as outdated.
This comment was marked as outdated.
i'm unsure what to use: left=spiBusReadRegister ; right=spiReadRegMsk (debug, X,Y,Z seemingly re-arranged or maybe just scaled differently) EmuFlight did not have EmuFlight/src/main/drivers/bus_spi.c Lines 275 to 279 in c55b0d7
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it should fix the issue, before we merge it we should see if we can replicate the issue on the bench and then show it not happening after this fix.
@Quick-Flash , 90 tilts seem to work fine, with the caveat that our Configurator can become out-of-sync with physical position if moved too rapidly. (tested with mpu6000 and bmi270, this is still true, but maybe worse with icm42688p, both this PR and master) master vs fix (where fix uses |
@nerdCopter can you test 90 degree pitch with |
still does it, but sensors tab looks good. maybe i'll wait for flight-test. or maybe just know/consider taht Configurator is obsolete on setup page render. |
findings:
|
these undocumented bits in register 0x4d control the "adaptive full
scale range" mode of the ICM42688. The feature is enabled by default
but has a bug where it gives "stuck" gyro values for short periods
(between 1ms and 2ms):, leading to a significant gyro bias at longer
time scales, enough to in some cases cause a vehicle to crash if it is
unable to switch to an alternative IMU
Co-authored-by: Andrew Tridgell [email protected]
Co-authored-by: Steve Evans [email protected]