common: HIL_ACTUATOR_CONTROLS and HIL_ACTUATOR_CONTROLS_FLAGS enum (#2221)

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
This commit is contained in:
Peter Hall
2025-03-26 07:26:04 +00:00
committed by GitHub
parent f9b85003a6
commit 3f95d5bd61
+8 -2
View File
@@ -5279,6 +5279,12 @@
</description>
</entry>
</enum>
<enum name="HIL_ACTUATOR_CONTROLS_FLAGS" bitmask="true">
<description>Flags used in HIL_ACTUATOR_CONTROLS message.</description>
<entry value="1" name="HIL_ACTUATOR_CONTROLS_FLAGS_LOCKSTEP">
<description>Simulation is using lockstep</description>
</entry>
</enum>
</enums>
<messages>
<message id="1" name="SYS_STATUS">
@@ -6125,8 +6131,8 @@
<description>Sent from autopilot to simulation. Hardware in the loop control outputs. Alternative to HIL_CONTROLS.</description>
<field type="uint64_t" name="time_usec" units="us">Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number.</field>
<field type="float[16]" name="controls">Control outputs -1 .. 1. Channel assignment depends on the simulated hardware.</field>
<field type="uint8_t" name="mode" enum="MAV_MODE_FLAG">System mode. Includes arming state.</field>
<field type="uint64_t" name="flags">Flags as bitfield, 1: indicate simulation using lockstep.</field>
<field type="uint8_t" name="mode" enum="MAV_MODE_FLAG" display="bitmask">System mode. Includes arming state.</field>
<field type="uint64_t" name="flags" enum="HIL_ACTUATOR_CONTROLS_FLAGS" display="bitmask">Flags bitmask.</field>
</message>
<message id="100" name="OPTICAL_FLOW">
<description>Optical flow from a flow sensor (e.g. optical mouse sensor)</description>