|
| 1 | +<mavlink> |
| 2 | + <enums> |
| 3 | + <enum name="MAV_PARAM_TYPE"> |
| 4 | + <description>Specifies the datatype of a MAVLink parameter.</description> |
| 5 | + <entry value="1" name="MAV_PARAM_TYPE_UINT8"> |
| 6 | + <description>8-bit unsigned integer</description> |
| 7 | + </entry> |
| 8 | + <entry value="2" name="MAV_PARAM_TYPE_INT8"> |
| 9 | + <description>8-bit signed integer</description> |
| 10 | + </entry> |
| 11 | + <entry value="3" name="MAV_PARAM_TYPE_UINT16"> |
| 12 | + <description>16-bit unsigned integer</description> |
| 13 | + </entry> |
| 14 | + <entry value="4" name="MAV_PARAM_TYPE_INT16"> |
| 15 | + <description>16-bit signed integer</description> |
| 16 | + </entry> |
| 17 | + <entry value="5" name="MAV_PARAM_TYPE_UINT32"> |
| 18 | + <description>32-bit unsigned integer</description> |
| 19 | + </entry> |
| 20 | + <entry value="6" name="MAV_PARAM_TYPE_INT32"> |
| 21 | + <description>32-bit signed integer</description> |
| 22 | + </entry> |
| 23 | + <entry value="7" name="MAV_PARAM_TYPE_UINT64"> |
| 24 | + <description>64-bit unsigned integer</description> |
| 25 | + </entry> |
| 26 | + <entry value="8" name="MAV_PARAM_TYPE_INT64"> |
| 27 | + <description>64-bit signed integer</description> |
| 28 | + </entry> |
| 29 | + <entry value="9" name="MAV_PARAM_TYPE_REAL32"> |
| 30 | + <description>32-bit floating-point</description> |
| 31 | + </entry> |
| 32 | + <entry value="10" name="MAV_PARAM_TYPE_REAL64"> |
| 33 | + <description>64-bit floating-point</description> |
| 34 | + </entry> |
| 35 | + </enum> |
| 36 | + </enums> |
| 37 | + <messages> |
| 38 | + <message id="20" name="PARAM_REQUEST_READ"> |
| 39 | + <description>Request to read the onboard parameter with the param_id string id. Onboard |
| 40 | + parameters are stored as key[const char*] -> value[float]. This allows to send a |
| 41 | + parameter to any other component (such as the GCS) without the need of previous |
| 42 | + knowledge of possible parameter names. Thus the same GCS can store different |
| 43 | + parameters |
| 44 | + for different autopilots. See also https://mavlink.io/en/services/parameter.html for |
| 45 | + a |
| 46 | + full documentation of QGroundControl and IMU code.</description> |
| 47 | + <field type="uint8_t" name="target_system">System ID</field> |
| 48 | + <field type="uint8_t" name="target_component">Component ID</field> |
| 49 | + <field type="char[16]" name="param_id">Onboard parameter id, terminated by NULL if the |
| 50 | + length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte |
| 51 | + if |
| 52 | + the length is exactly 16 chars - applications have to provide 16+1 bytes storage if |
| 53 | + the |
| 54 | + ID is stored as string</field> |
| 55 | + <field type="int16_t" name="param_index" invalid="-1">Parameter index. Send -1 to use |
| 56 | + the |
| 57 | + param ID field as identifier (else the param id will be ignored)</field> |
| 58 | + </message> |
| 59 | + <message id="21" name="PARAM_REQUEST_LIST"> |
| 60 | + <description>Request all parameters of this component. After this request, all |
| 61 | + parameters |
| 62 | + are emitted. The parameter microservice is documented at |
| 63 | + https://mavlink.io/en/services/parameter.html</description> |
| 64 | + <field type="uint8_t" name="target_system">System ID</field> |
| 65 | + <field type="uint8_t" name="target_component">Component ID</field> |
| 66 | + </message> |
| 67 | + <message id="22" name="PARAM_VALUE"> |
| 68 | + <description>Emit the value of a onboard parameter. The inclusion of param_count and |
| 69 | + param_index in the message allows the recipient to keep track of received parameters |
| 70 | + and |
| 71 | + allows him to re-request missing parameters after a loss or timeout. The parameter |
| 72 | + microservice is documented at https://mavlink.io/en/services/parameter.html</description> |
| 73 | + <field type="char[16]" name="param_id">Onboard parameter id, terminated by NULL if the |
| 74 | + length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte |
| 75 | + if |
| 76 | + the length is exactly 16 chars - applications have to provide 16+1 bytes storage if |
| 77 | + the |
| 78 | + ID is stored as string</field> |
| 79 | + <field type="float" name="param_value">Onboard parameter value</field> |
| 80 | + <field type="uint8_t" name="param_type" enum="MAV_PARAM_TYPE">Onboard parameter type.</field> |
| 81 | + <field type="uint16_t" name="param_count">Total number of onboard parameters</field> |
| 82 | + <field type="uint16_t" name="param_index">Index of this onboard parameter</field> |
| 83 | + </message> |
| 84 | + <message id="23" name="PARAM_SET"> |
| 85 | + <description>Set a parameter value (write new value to permanent storage). |
| 86 | + The receiving component should acknowledge the new parameter value by broadcasting a |
| 87 | + PARAM_VALUE message (broadcasting ensures that multiple GCS all have an up-to-date |
| 88 | + list |
| 89 | + of all parameters). If the sending GCS did not receive a PARAM_VALUE within its |
| 90 | + timeout |
| 91 | + time, it should re-send the PARAM_SET message. The parameter microservice is |
| 92 | + documented |
| 93 | + at https://mavlink.io/en/services/parameter.html. |
| 94 | + </description> |
| 95 | + <field type="uint8_t" name="target_system">System ID</field> |
| 96 | + <field type="uint8_t" name="target_component">Component ID</field> |
| 97 | + <field type="char[16]" name="param_id">Onboard parameter id, terminated by NULL if the |
| 98 | + length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte |
| 99 | + if |
| 100 | + the length is exactly 16 chars - applications have to provide 16+1 bytes storage if |
| 101 | + the |
| 102 | + ID is stored as string</field> |
| 103 | + <field type="float" name="param_value">Onboard parameter value</field> |
| 104 | + <field type="uint8_t" name="param_type" enum="MAV_PARAM_TYPE">Onboard parameter type.</field> |
| 105 | + </message> |
| 106 | + </messages> |
| 107 | +</mavlink> |
0 commit comments