mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 14:53:33 +08:00
mag calibration: improve 4 and 2 side calibration
- if less than 6 sides are calibrated, keep the existing calibration and update the offsets and scales - if 2 sides are calibrated, estimate the offsets only (as this is enough if a full calibration was done already, and the problem is not constrained enough to estimate scales and offsets)
This commit is contained in:
@@ -42,6 +42,11 @@ PARAM_DEFINE_INT32(CAL_MAG_PRIME, 0);
|
||||
/**
|
||||
* Bitfield selecting mag sides for calibration
|
||||
*
|
||||
* If set to two side calibration, only the offsets are estimated, the scale
|
||||
* calibration is left unchanged. Thus an initial six side calibration is
|
||||
* recommended.
|
||||
*
|
||||
* Bits:
|
||||
* DETECT_ORIENTATION_TAIL_DOWN = 1
|
||||
* DETECT_ORIENTATION_NOSE_DOWN = 2
|
||||
* DETECT_ORIENTATION_LEFT = 4
|
||||
|
||||
Reference in New Issue
Block a user