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

AP_InertialSensor: Improve bitmask indicating persistent parameters on bootloader flash #26623

Conversation

joshanne
Copy link
Contributor

@joshanne joshanne commented Mar 25, 2024

The current param description indicates that bit 0 will do both accels and tempcals. However, INS_TCAL_OPTIONS is a bitmask that is used to persist 0:tempcals and 1:accels (or both).

See: TCalOptions Definition

I don't have access to add labels to wiki, but there is an associated wiki PR to better describe how to use the persistence here: ardupilot_wiki PR#5841

@joshanne joshanne requested review from tridge and peterbarker March 25, 2024 21:08
// @Description: This enables optional temperature calibration features. Setting PersistParams will save the accelerometer and temperature calibration parameters in the bootloader sector on the next update of the bootloader.
// @Bitmask: 0:PersistParams
// @Description: This enables optional temperature calibration features. Setting of the Persist bits will save the temperature and/or accelerometer calibration parameters in the bootloader sector on the next update of the bootloader.
// @Bitmask: 0:PersistTemps 1:PersistAccels
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a comma.

…n bootloader flash

INS_TCAL_OPTIONS parameter description indicates a singular bit in a bitmask to persist Accels/TCAL parameters, however there are two separate bits for persistence.
@tridge tridge merged commit ac271cf into ArduPilot:master Mar 26, 2024
90 of 91 checks passed
@joshanne joshanne deleted the improve-tcal-options-parameter-bitmask-description branch March 26, 2024 03:17
tridge pushed a commit to ArduPilot/ardupilot_wiki that referenced this pull request Mar 30, 2024
@Hwurzburg Hwurzburg added the WikiNeeded needs wiki update label Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 4.5.5-beta1
Development

Successfully merging this pull request may close these issues.

4 participants