Skip to content

common: document force-save values to PREFLIGHT_CALIBRATION#485

Closed
peterbarker wants to merge 1 commit intoArduPilot:masterfrom
peterbarker:pr-claude/fix-forced-calibration-descriptions
Closed

common: document force-save values to PREFLIGHT_CALIBRATION#485
peterbarker wants to merge 1 commit intoArduPilot:masterfrom
peterbarker:pr-claude/fix-forced-calibration-descriptions

Conversation

@peterbarker
Copy link

ArduPilot uses these two values in MAV_CMD_PREFLIGHT_CALIBRATION to force-accept an existing sensor calibration without re-running it:

param2 = 76 force-accept current compass calibration as valid
param5 = 76 force-accept current accelerometer calibration as valid

ArduPilot uses these two values in MAV_CMD_PREFLIGHT_CALIBRATION
to force-accept an existing sensor calibration without re-running it:

  param2 = 76  force-accept current compass calibration as valid
  param5 = 76  force-accept current accelerometer calibration as valid

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Member

@IamPete1 IamPete1 left a comment

Choose a reason for hiding this comment

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

Looks good to take upstream.

<entry value="0" name="PREFLIGHT_CAL_ACCEL_NONE">
<description>No action.</description>
</entry>
<entry value="1" name="PREFLIGHT_CAL_ACCEL_FULL">
Copy link

@hamishwillee hamishwillee Mar 4, 2026

Choose a reason for hiding this comment

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

Isn't the convention to use enum prefix PREFLIGHT_CALIBRATION_MAGNETOMETER_ for value Ditto for mag?

IF they need to be shorter do PREFLIGHT_CALIBRATION_MAG?

@peterbarker peterbarker deleted the pr-claude/fix-forced-calibration-descriptions branch March 24, 2026 03:41
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.

6 participants