Skip to content

Commit 390efc3

Browse files
christianpetritridge
authored andcommitted
Mavlink: update MAG_CAL_STATUS enums from mavlink/mavlink#2478
Rename BAD_ORIENTATION/BAD_RADIUS to FAILED_ORIENTATION/FAILED_RADIUS and add three new failure codes introduced by the upstream PR: - MAG_CAL_FAILED_OFFSETS (value 8) - MAG_CAL_FAILED_DIAG_SCALING (value 9) - MAG_CAL_FAILED_RESIDUALS_HIGH (value 10) Changes: common.xml + regenerated Mavlink.cs enum block only.
1 parent 2b5589f commit 390efc3

2 files changed

Lines changed: 30 additions & 8 deletions

File tree

ExtLibs/Mavlink/Mavlink.cs

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6012,12 +6012,21 @@ public enum MAG_CAL_STATUS: byte
60126012
///<summary> | </summary>
60136013
[Description("")]
60146014
MAG_CAL_FAILED=5,
6015-
///<summary> | </summary>
6016-
[Description("")]
6017-
MAG_CAL_BAD_ORIENTATION=6,
6018-
///<summary> | </summary>
6019-
[Description("")]
6020-
MAG_CAL_BAD_RADIUS=7,
6015+
///<summary> Compass calibration failed: the vehicle orientation is outside the required tolerance. | </summary>
6016+
[Description("Compass calibration failed: the vehicle orientation is outside the required tolerance.")]
6017+
MAG_CAL_FAILED_ORIENTATION=6,
6018+
///<summary> Compass calibration failed: the radius of the fitted sphere is unrealistically small or large. | </summary>
6019+
[Description("Compass calibration failed: the radius of the fitted sphere is unrealistically small or large.")]
6020+
MAG_CAL_FAILED_RADIUS=7,
6021+
///<summary> Compass calibration failed: offset magnitude too large. | </summary>
6022+
[Description("Compass calibration failed: offset magnitude too large.")]
6023+
MAG_CAL_FAILED_OFFSETS=8,
6024+
///<summary> Compass calibration failed: diagonal or off-diagonal scaling values out of valid range. | </summary>
6025+
[Description("Compass calibration failed: diagonal or off-diagonal scaling values out of valid range.")]
6026+
MAG_CAL_FAILED_DIAG_SCALING=9,
6027+
///<summary> Compass calibration failed: fitness (RMS residual) exceeds tolerance. | </summary>
6028+
[Description("Compass calibration failed: fitness (RMS residual) exceeds tolerance.")]
6029+
MAG_CAL_FAILED_RESIDUALS_HIGH=10,
60216030

60226031
};
60236032

ExtLibs/Mavlink/message_definitions/common.xml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4142,8 +4142,21 @@
41424142
<entry value="3" name="MAG_CAL_RUNNING_STEP_TWO"/>
41434143
<entry value="4" name="MAG_CAL_SUCCESS"/>
41444144
<entry value="5" name="MAG_CAL_FAILED"/>
4145-
<entry value="6" name="MAG_CAL_BAD_ORIENTATION"/>
4146-
<entry value="7" name="MAG_CAL_BAD_RADIUS"/>
4145+
<entry value="6" name="MAG_CAL_FAILED_ORIENTATION">
4146+
<description>Compass calibration failed: the vehicle orientation is outside the required tolerance.</description>
4147+
</entry>
4148+
<entry value="7" name="MAG_CAL_FAILED_RADIUS">
4149+
<description>Compass calibration failed: the radius of the fitted sphere is unrealistically small or large.</description>
4150+
</entry>
4151+
<entry value="8" name="MAG_CAL_FAILED_OFFSETS">
4152+
<description>Compass calibration failed: offset magnitude too large.</description>
4153+
</entry>
4154+
<entry value="9" name="MAG_CAL_FAILED_DIAG_SCALING">
4155+
<description>Compass calibration failed: diagonal or off-diagonal scaling values out of valid range.</description>
4156+
</entry>
4157+
<entry value="10" name="MAG_CAL_FAILED_RESIDUALS_HIGH">
4158+
<description>Compass calibration failed: fitness (RMS residual) exceeds tolerance.</description>
4159+
</entry>
41474160
</enum>
41484161
<enum name="CAN_FILTER_OP">
41494162
<entry value="0" name="CAN_FILTER_REPLACE"/>

0 commit comments

Comments
 (0)