AP_Math: Add a warning to rotations to indicate that it is expected to

match the MAVLink definitions
This commit is contained in:
Michael du Breuil 2018-07-25 14:48:17 -07:00 committed by Randy Mackay
parent 8664ed006a
commit 46355e3de9

View File

@ -66,6 +66,12 @@ enum Rotation : uint8_t {
ROTATION_ROLL_90_PITCH_68_YAW_293 = 38, ROTATION_ROLL_90_PITCH_68_YAW_293 = 38,
ROTATION_PITCH_315 = 39, ROTATION_PITCH_315 = 39,
ROTATION_ROLL_90_PITCH_315 = 40, ROTATION_ROLL_90_PITCH_315 = 40,
///////////////////////////////////////////////////////////////////////
// Do not add more rotations without checking that there is not a conflict
// with the MAVLink spec. MAV_SENSOR_ORIENTATION is expected to match our
// list of rotations here. If a new rotation is added it needs to be added
// to the MAVLink messages as well.
///////////////////////////////////////////////////////////////////////
ROTATION_MAX, ROTATION_MAX,
ROTATION_CUSTOM = 100, ROTATION_CUSTOM = 100,
}; };