feat(mavlink): adopt the kaptan-native dialect
This commit is contained in:
1 parent
1c90870634
commit
5f91465e66
87 files changed
+7733
-6850
No files matched your search
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<mavlink>
|
||||
<version>3</version>
|
||||
<dialect>0</dialect>
|
||||
<messages>
|
||||
<message id="51021" name="ERROR">
|
||||
<description>Reportable firmware error emitted when an Err leaves an annotated reporting point. This is distinct from every logging macro, which emits LOG. The stable ID is explicitly assigned to the Rust error variant. Protocol failures remain authoritative in their owning response.</description>
|
||||
<field type="uint16_t" name="error_id">Stable explicitly assigned error catalog ID. Zero is reserved.</field>
|
||||
<field type="uint8_t[96]" name="raised_at">Zero-padded compile-time file:line of the reporting point.</field>
|
||||
</message>
|
||||
</messages>
|
||||
</mavlink>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0"?>
|
||||
<mavlink>
|
||||
<version>3</version>
|
||||
<dialect>0</dialect>
|
||||
<enums>
|
||||
<enum name="HEARTBEAT_STATE">
|
||||
<entry value="1" name="HEARTBEAT_STATE_INITIALIZED_OUTPUTS_INHIBITED">
|
||||
<description>Initialization completed and the physical output routes remain inhibited.</description>
|
||||
</entry>
|
||||
</enum>
|
||||
</enums>
|
||||
<messages>
|
||||
<message id="51027" name="HEARTBEAT">
|
||||
<description>Periodic liveness and discovery publication for the initialized output-inhibited firmware composition.</description>
|
||||
<field type="uint8_t" name="state" enum="HEARTBEAT_STATE"/>
|
||||
</message>
|
||||
</messages>
|
||||
</mavlink>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<mavlink>
|
||||
<version>3</version>
|
||||
<dialect>0</dialect>
|
||||
<messages>
|
||||
<message id="51028" name="IMU">
|
||||
<description>One accepted body-frame inertial observation in the native bounded sensor representation.</description>
|
||||
<field type="uint64_t" name="time_us">Flight-controller monotonic acquisition time in microseconds.</field>
|
||||
<field type="int16_t[3]" name="acceleration_milligravity">Body-frame acceleration in milligravity.</field>
|
||||
<field type="int16_t[3]" name="angular_rate_milliradians_per_second">Body-frame angular rate in milliradians per second.</field>
|
||||
<field type="int16_t" name="temperature_centidegrees_celsius">Sensor temperature in centidegrees Celsius.</field>
|
||||
</message>
|
||||
</messages>
|
||||
</mavlink>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0"?>
|
||||
<mavlink>
|
||||
<version>3</version>
|
||||
<dialect>0</dialect>
|
||||
<enums>
|
||||
<enum name="LOG_LEVEL">
|
||||
<entry value="0" name="LOG_LEVEL_OFF">
|
||||
<description>Filter-only sentinel. A LOG event must not use this value.</description>
|
||||
</entry>
|
||||
<entry value="1" name="LOG_LEVEL_TRACE"/>
|
||||
<entry value="2" name="LOG_LEVEL_DEBUG"/>
|
||||
<entry value="3" name="LOG_LEVEL_INFO"/>
|
||||
<entry value="4" name="LOG_LEVEL_WARN"/>
|
||||
<entry value="5" name="LOG_LEVEL_ERROR"/>
|
||||
</enum>
|
||||
<enum name="LOG_FLAGS" bitmask="true">
|
||||
<entry value="1" name="LOG_FLAG_TRUNCATED">
|
||||
<description>Message text was truncated to the bounded on-wire buffer.</description>
|
||||
</entry>
|
||||
</enum>
|
||||
</enums>
|
||||
<messages>
|
||||
<message id="51020" name="LOG">
|
||||
<description>Bounded human-readable runtime log emitted by every Kaptan logging macro, including error. The receiver needs only level, flags, and the valid UTF-8 text prefix. MAVLink framing, bounded admission, DMA, and retries remain platform-owned.</description>
|
||||
<field type="uint8_t" name="level" enum="LOG_LEVEL">Kaptan wire level.</field>
|
||||
<field type="uint8_t" name="flags" enum="LOG_FLAGS">TRUNCATED=1. Receivers ignore unrecognized bits.</field>
|
||||
<field type="uint8_t" name="message_length">Number of valid UTF-8 bytes in message; at most 160.</field>
|
||||
<field type="uint8_t[160]" name="message">Bounded UTF-8 message bytes. Bytes after message_length are zero.</field>
|
||||
</message>
|
||||
</messages>
|
||||
</mavlink>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<mavlink>
|
||||
<version>3</version>
|
||||
<dialect>0</dialect>
|
||||
<messages>
|
||||
<message id="51030" name="OPTICAL_FLOW">
|
||||
<description>One accepted ground-referenced optical-flow observation from the board's selected vertical sensor route.</description>
|
||||
<field type="uint64_t" name="time_us">Flight-controller monotonic reception time in microseconds.</field>
|
||||
<field type="int32_t[2]" name="velocity_millimetres_per_second">Ground-referenced sensor-frame X/Y velocity in millimetres per second.</field>
|
||||
<field type="uint32_t" name="ground_distance_millimetres">Ground distance in millimetres.</field>
|
||||
<field type="uint8_t" name="quality">Device-reported observation quality.</field>
|
||||
</message>
|
||||
</messages>
|
||||
</mavlink>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<mavlink>
|
||||
<version>3</version>
|
||||
<dialect>0</dialect>
|
||||
<messages>
|
||||
<message id="51029" name="RANGE">
|
||||
<description>One accepted downward range observation from the board's selected vertical sensor route.</description>
|
||||
<field type="uint64_t" name="time_us">Flight-controller monotonic measurement-request time in microseconds.</field>
|
||||
<field type="uint32_t" name="distance_millimetres">Measured downward distance in millimetres.</field>
|
||||
</message>
|
||||
</messages>
|
||||
</mavlink>
|
||||
Reference in new issue
Block a user