Skip to content

Commit f1ef3d8

Browse files
ThomasDebrunnerpeterbarker
authored andcommitted
SYS_STATUS: Extend system status flags, and add flag for recovery system (mavlink#1751)
Extend sys_status message with another triplet of bitfields to indicate sensor presence and health. Use last bit of existing fields to indicate presence of extended fields.
1 parent 93ac558 commit f1ef3d8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

message_definitions/v1.0/common.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,15 @@
196196
<entry value="1073741824" name="MAV_SYS_STATUS_SENSOR_PROPULSION">
197197
<description>0x40000000 propulsion (actuator, esc, motor or propellor)</description>
198198
</entry>
199+
<entry value="2147483648" name="MAV_SYS_STATUS_EXTENSION_USED">
200+
<description>0x80000000 Extended bit-field are used for further sensor status bits (needs to be set in onboard_control_sensors_present only)</description>
201+
</entry>
202+
</enum>
203+
<enum name="MAV_SYS_STATUS_SENSOR_EXTENDED" bitmask="true">
204+
<description>These encode the sensors whose status is sent as part of the SYS_STATUS message in the extended fields.</description>
205+
<entry value="1" name="MAV_SYS_STATUS_RECOVERY_SYSTEM">
206+
<description>0x01 Recovery system (parachute, balloon, retracts etc)</description>
207+
</entry>
199208
</enum>
200209
<enum name="MAV_FRAME">
201210
<description>Coordinate frames used by MAVLink. Not all frames are supported by all commands, messages, or vehicles.
@@ -4998,6 +5007,10 @@
49985007
<field type="uint16_t" name="errors_count2">Autopilot-specific errors</field>
49995008
<field type="uint16_t" name="errors_count3">Autopilot-specific errors</field>
50005009
<field type="uint16_t" name="errors_count4">Autopilot-specific errors</field>
5010+
<extensions/>
5011+
<field type="uint32_t" name="onboard_control_sensors_present_extended" enum="MAV_SYS_STATUS_SENSOR_EXTENDED" print_format="0x%04x">Bitmap showing which onboard controllers and sensors are present. Value of 0: not present. Value of 1: present.</field>
5012+
<field type="uint32_t" name="onboard_control_sensors_enabled_extended" enum="MAV_SYS_STATUS_SENSOR_EXTENDED" print_format="0x%04x">Bitmap showing which onboard controllers and sensors are enabled: Value of 0: not enabled. Value of 1: enabled.</field>
5013+
<field type="uint32_t" name="onboard_control_sensors_health_extended" enum="MAV_SYS_STATUS_SENSOR_EXTENDED" print_format="0x%04x">Bitmap showing which onboard controllers and sensors have an error (or are operational). Value of 0: error. Value of 1: healthy.</field>
50015014
</message>
50025015
<message id="2" name="SYSTEM_TIME">
50035016
<description>The system time is the time of the sender's master clock.

0 commit comments

Comments
 (0)