///|
/// Official MAVLink v2 `minimal.xml` specification (Enums + `HEARTBEAT` #0),
/// used for `minimal.xml` multi-file dialect resolution tests.
pub let official_minimal_xml : String =
#|
#|
#| 3
#| 0
#|
#|
#| Micro air vehicle / autopilot classes.
#|
#| Generic autopilot, full support for everything
#|
#|
#| ArduPilotMega / ArduCopter / ArduPlane / ArduRover
#|
#|
#| No valid autopilot, e.g. a GCS or other MAVLink component
#|
#|
#| PX4 Autopilot
#|
#|
#|
#| MAVLINK component type reported in HEARTBEAT message.
#|
#| Generic micro air vehicle
#|
#|
#| Fixed wing aircraft
#|
#|
#| Quadrotor
#|
#|
#| Ground control station
#|
#|
#| Ground rover
#|
#|
#| Submarine
#|
#|
#| Hexarotor
#|
#|
#| Octorotor
#|
#|
#| VTOL EasyGlider / Tailsitter
#|
#|
#|
#| These flags encode the MAV mode.
#|
#| 0b00000001 Reserved for future use.
#|
#|
#| 0b00000010 system has a test mode enabled.
#|
#|
#| 0b00000100 autonomous mode enabled.
#|
#|
#| 0b00001000 guided mode enabled.
#|
#|
#| 0b00010000 system stabilizes electronically its attitude.
#|
#|
#| 0b00100000 hardware in the loop simulation.
#|
#|
#| 0b01000000 remote control input is enabled.
#|
#|
#| 0b10000000 MAV safety set to armed.
#|
#|
#|
#| Indicates the current state of the vehicle.
#|
#| Uninitialized system, state is unknown.
#|
#|
#| System is booting up.
#|
#|
#| System is calibrating and not flight-ready.
#|
#|
#| System is grounded and on standby.
#|
#|
#| System is active and might be airborne.
#|
#|
#| System is in a non-normal flight mode.
#|
#|
#| System is in a non-normal flight mode (failsafe).
#|
#|
#| System just initialized its power-down sequence.
#|
#|
#| System is terminating itself.
#|
#|
#|
#| Component ids (values) for the different types and instances of onboard hardware/software.
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#| The heartbeat message shows that a system or component is present and responding.
#| Vehicle or component type.
#| Autopilot type / class.
#| System mode bitmap.
#| A bitfield for use for autopilot-specific flags.
#| System status flag.
#| MAVLink version, not writable by user.
#|
#|
#|
///|
/// Built-in XML file resolver for `` directives (`"minimal.xml"`, `"common.xml"`, `"standard.xml"`).
pub fn builtin_xml_resolver(file_name : String) -> String? {
match file_name {
"minimal.xml" => Some(official_minimal_xml)
"common.xml" | "standard.xml" => Some(official_standard_xml)
_ => None
}
}
///|
/// Official MAVLink v2 standard XML message definitions (`minimal.xml` + `common.xml` 18 enums and 45 core messages)
/// used both for code generation (`standard_dialect.mbt`) and runtime self-hosting verification.
pub let official_standard_xml : String =
#|
#|
#| 3
#| 0
#|
#|
#| Micro air vehicle / autopilot classes.
#|
#| Generic autopilot, full support for everything
#|
#|
#| ArduPilotMega / ArduCopter / ArduPlane / ArduRover
#|
#|
#| No valid autopilot, e.g. a GCS or other MAVLink component
#|
#|
#| PX4 Autopilot
#|
#|
#|
#| MAVLINK component type reported in HEARTBEAT message.
#|
#| Generic micro air vehicle
#|
#|
#| Fixed wing aircraft
#|
#|
#| Quadrotor
#|
#|
#| Ground control station
#|
#|
#| Ground rover
#|
#|
#| Submarine
#|
#|
#| Hexarotor
#|
#|
#| Octorotor
#|
#|
#| VTOL EasyGlider / Tailsitter
#|
#|
#|
#| These flags encode the MAV mode.
#|
#| 0b00000001 Reserved for future use.
#|
#|
#| 0b00000010 system has a test mode enabled.
#|
#|
#| 0b00000100 autonomous mode enabled.
#|
#|
#| 0b00001000 guided mode enabled.
#|
#|
#| 0b00010000 system stabilizes electronically its attitude.
#|
#|
#| 0b00100000 hardware in the loop simulation.
#|
#|
#| 0b01000000 remote control input is enabled.
#|
#|
#| 0b10000000 MAV safety set to armed.
#|
#|
#|
#| Indicates the current state of the vehicle.
#|
#| Uninitialized system, state is unknown.
#|
#|
#| System is booting up.
#|
#|
#| System is calibrating and not flight-ready.
#|
#|
#| System is grounded and on standby.
#|
#|
#| System is active and might be airborne.
#|
#|
#| System is in a non-normal flight mode.
#|
#|
#| System is in a non-normal flight mode (failsafe).
#|
#|
#| System just initialized its power-down sequence.
#|
#|
#| System is terminating itself.
#|
#|
#|
#| Component ids (values) for the different types and instances of onboard hardware/software.
#|
#|
#|
#|
#|
#|
#|
#|
#|
#| Commands to be executed by the MAV.
#|
#| Navigate to waypoint.
#|
#|
#| Loiter around this MISSION an unlimited amount of time.
#|
#|
#| Return to launch location.
#|
#|
#| Land at location.
#|
#|
#| Takeoff from ground / hand.
#|
#|
#| Set system mode.
#|
#|
#| Change speed and/or throttle set points.
#|
#|
#| Set a servo to a desired PWM value.
#|
#|
#| Arms / Disarms a component.
#|
#|
#| Set the interval between messages for a particular MAVLink message ID.
#|
#|
#| Request the target system(s) emit a single instance of a specified message.
#|
#|
#| Request autopilot capabilities.
#|
#|
#|
#| Result from a MAVLink command (MAV_CMD).
#|
#| Command is valid and is being executed.
#|
#|
#| Command is valid, but cannot be executed at this time.
#|
#|
#| Command is invalid or not permitted.
#|
#|
#| Command is not supported (unknown).
#|
#|
#| Command is valid, but execution has failed.
#|
#|
#| Command is valid and is currently being executed.
#|
#|
#| Command has been cancelled.
#|
#|
#|
#| Indicates the severity level, generally used for status messages.
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#| Type of GPS fix.
#|
#|
#|
#|
#|
#|
#|
#|
#|
#| Coordinate frames used by MAVLink mission items and position messages.
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#| Result of a MAVLink mission operation (MAV_MISSION_ACK).
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#| Type of mission items being requested, uploaded, or cleared.
#|
#|
#|
#|
#|
#|
#| Specifies the datatype of a MAVLink parameter.
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#| Data stream IDs for telemetry rate configuration.
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#| Enumeration of distance sensor types.
#|
#|
#|
#|
#|
#|
#|
#| Enumeration of sensor orientation, according to its rotations.
#|
#|
#|
#|
#|
#|
#|
#|
#| Enumeration of landed detector states.
#|
#|
#|
#|
#|
#|
#|
#| Enumeration of VTOL states.
#|
#|
#|
#|
#|
#|
#|
#| Specifies the datatype of a MAVLink extended parameter.
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#| Result from a MAVLink extended parameter transaction.
#|
#|
#|
#|
#|
#|
#| Bitmap to indicate which dimensions should be ignored by the vehicle.
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#|
#| Bitmap to indicate which dimensions should be ignored by the vehicle.
#|
#|
#|
#|
#|
#|
#|
#|
#|
#| The heartbeat message shows that a system or component is present and responding.
#| Vehicle or component type.
#| Autopilot type / class.
#| System mode bitmap.
#| A bitfield for use for autopilot-specific flags.
#| System status flag.
#| MAVLink version, not writable by user.
#|
#|
#| The general system state.
#| Bitmap showing which onboard controllers and sensors are present.
#| Bitmap showing which onboard controllers and sensors are enabled.
#| Bitmap showing which onboard controllers and sensors are operational.
#| Maximum usage in percent of the mainloop time (0..1000).
#| Battery voltage, in millivolts.
#| Battery current, in 10*milliamperes.
#| Battery energy remaining (0..100).
#| Communication drop rate.
#| Communication errors.
#| Autopilot-specific errors 1.
#| Autopilot-specific errors 2.
#| Autopilot-specific errors 3.
#| Autopilot-specific errors 4.
#|
#|
#| The system time is the time of the master clock, typically the computer clock of the main onboard computer.
#| Timestamp (UNIX epoch time).
#| Timestamp (time since system boot).
#|
#|
#| A ping message either requesting or responding to a ping.
#| Timestamp (UNIX Epoch time or time since system boot).
#| PING sequence.
#| 0: request ping from all receiving systems.
#| 0: request ping from all receiving components.
#|
#|
#| Set the system mode, as defined by enum MAV_MODE.
#| The system setting the mode.
#| The new base mode.
#| The new autopilot-specific mode.
#|
#|
#| Request to read the onboard parameter with the param_id string id.
#| System ID.
#| Component ID.
#| Onboard parameter id, terminated by NULL if length is less than 16.
#| Parameter index. Send -1 to use the param ID field as identifier.
#|
#|
#| Request all parameters of this component.
#| System ID.
#| Component ID.
#|
#|
#| Emit the value of a onboard parameter.
#| Onboard parameter id.
#| Onboard parameter value.
#| Onboard parameter type.
#| Total number of onboard parameters.
#| Index of this onboard parameter.
#|
#|
#| Set a parameter value (write new value to permanent storage).
#| System ID.
#| Component ID.
#| Onboard parameter id.
#| Onboard parameter value.
#| Onboard parameter type.
#|
#|
#| The global position, as returned by the Global Positioning System (GPS).
#| Timestamp (UNIX Epoch time or time since system boot).
#| GPS fix type.
#| Latitude (WGS84, EGM96 ellipsoid).
#| Longitude (WGS84, EGM96 ellipsoid).
#| Altitude (MSL).
#| GPS HDOP horizontal dilution of position.
#| GPS VDOP vertical dilution of position.
#| GPS ground speed.
#| Course over ground.
#| Number of satellites visible.
#|
#| Altitude (above WGS84, EGM96 ellipsoid).
#| Position uncertainty.
#| Altitude uncertainty.
#| Speed uncertainty.
#| Heading / track uncertainty.
#| Yaw in earth frame from north.
#|
#|
#| The RAW IMU readings for the usual 9DOF sensor setup (scaled to milli-g / millirad/s).
#| Timestamp (time since system boot).
#| X acceleration.
#| Y acceleration.
#| Z acceleration.
#| Angular speed around X axis.
#| Angular speed around Y axis.
#| Angular speed around Z axis.
#| X Magnetic field.
#| Y Magnetic field.
#| Z Magnetic field.
#|
#| Temperature, 0: IMU does not provide temperature values.
#|
#|
#| The RAW IMU readings for a 9DOF sensor, which is identified by the id (default IMU1).
#| Timestamp (UNIX Epoch time or time since system boot).
#| X acceleration (raw).
#| Y acceleration (raw).
#| Z acceleration (raw).
#| Angular speed around X axis (raw).
#| Angular speed around Y axis (raw).
#| Angular speed around Z axis (raw).
#| X Magnetic field (raw).
#| Y Magnetic field (raw).
#| Z Magnetic field (raw).
#|
#| Id. Ids are numbered from 0 and map to IMUs numbered from 1.
#| Temperature, 0: IMU does not provide temperature values.
#|
#|
#| The pressure readings for the typical setup of one absolute and differential pressure sensor.
#| Timestamp (time since system boot).
#| Absolute pressure.
#| Differential pressure 1.
#| Absolute pressure temperature.
#|
#| Differential pressure temperature.
#|
#|
#| The attitude in the aeronautical frame (right-handed, Z-down, X-front, Y-right).
#| Timestamp (time since system boot).
#| Roll angle (-pi..+pi).
#| Pitch angle (-pi..+pi).
#| Yaw angle (-pi..+pi).
#| Roll angular speed.
#| Pitch angular speed.
#| Yaw angular speed.
#|
#|
#| The attitude in the aeronautical frame (right-handed, Z-down, X-front, Y-right), expressed as quaternion.
#| Timestamp (time since system boot).
#| Quaternion component 1, w (1 in null-rotation).
#| Quaternion component 2, x (0 in null-rotation).
#| Quaternion component 3, y (0 in null-rotation).
#| Quaternion component 4, z (0 in null-rotation).
#| Roll angular speed.
#| Pitch angular speed.
#| Yaw angular speed.
#|
#| Rotation offset by which the attitude quaternion and angular speed vector should be rotated.
#|
#|
#| The filtered local position (e.g. fused computer vision and accelerometers) in NED frame.
#| Timestamp (time since system boot).
#| X Position (North).
#| Y Position (East).
#| Z Position (Down).
#| X Speed.
#| Y Speed.
#| Z Speed.
#|
#|
#| The filtered global position (e.g. fused GPS and accelerometers).
#| Timestamp (time since system boot).
#| Latitude, expressed as degrees * 1E7.
#| Longitude, expressed as degrees * 1E7.
#| Altitude (MSL).
#| Altitude above ground.
#| Ground X Speed (Latitude, positive north).
#| Ground Y Speed (Longitude, positive east).
#| Ground Z Speed (Altitude, positive down).
#| Vehicle heading (yaw angle), 0.0..359.99 degrees.
#|
#|
#| The RAW values of the RC channels received.
#| Timestamp (time since system boot).
#| Servo output port (set of 8 outputs = 1 port).
#| RC channel 1 value.
#| RC channel 2 value.
#| RC channel 3 value.
#| RC channel 4 value.
#| RC channel 5 value.
#| RC channel 6 value.
#| RC channel 7 value.
#| RC channel 8 value.
#| Receive signal strength indicator in device-dependent units/scale.
#|
#|
#| The RAW values of the servo outputs (for RC input from the remote, use the RC_CHANNELS messages).
#| Timestamp (UNIX Epoch time or time since system boot).
#| Servo output port (set of 8 outputs = 1 port).
#| Servo output 1 value.
#| Servo output 2 value.
#| Servo output 3 value.
#| Servo output 4 value.
#| Servo output 5 value.
#| Servo output 6 value.
#| Servo output 7 value.
#| Servo output 8 value.
#|
#| Servo output 9 value.
#| Servo output 10 value.
#| Servo output 11 value.
#| Servo output 12 value.
#| Servo output 13 value.
#| Servo output 14 value.
#| Servo output 15 value.
#| Servo output 16 value.
#|
#|
#| Request the information of the mission item with the sequence number seq.
#| System ID.
#| Component ID.
#| Sequence.
#|
#| Mission type.
#|
#|
#| Set the mission item with sequence number seq as current item.
#| System ID.
#| Component ID.
#| Sequence.
#|
#|
#| Message that announces the sequence number of the current active mission item.
#| Sequence.
#|
#| Total number of mission items on vehicle.
#| Mission state machine state.
#| Vehicle is in a mode that can execute mission items or not.
#|
#|
#| Request the overall list of mission items from the system/component.
#| System ID.
#| Component ID.
#|
#| Mission type.
#|
#|
#| This message is emitted as response to MISSION_REQUEST_LIST by the MAV and to initiate a write transaction.
#| System ID.
#| Component ID.
#| Number of mission items in the sequence.
#|
#| Mission type.
#| Id of current on-vehicle mission, fence, or rally point plan.
#|
#|
#| Delete all mission items at once.
#| System ID.
#| Component ID.
#|
#| Mission type.
#|
#|
#| A certain mission item has been reached.
#| Sequence.
#|
#|
#| Acknowledgment message during waypoint handling.
#| System ID.
#| Component ID.
#| Mission result.
#|
#| Mission type.
#| Id of current on-vehicle mission, fence, or rally point plan.
#|
#|
#| Request the information of the mission item with the sequence number seq.
#| System ID.
#| Component ID.
#| Sequence.
#|
#| Mission type.
#|
#|
#| The PPM values of the RC channels received.
#| Timestamp (time since system boot).
#| Total number of RC channels being received.
#| RC channel 1 value.
#| RC channel 2 value.
#| RC channel 3 value.
#| RC channel 4 value.
#| RC channel 5 value.
#| RC channel 6 value.
#| RC channel 7 value.
#| RC channel 8 value.
#| RC channel 9 value.
#| RC channel 10 value.
#| RC channel 11 value.
#| RC channel 12 value.
#| RC channel 13 value.
#| RC channel 14 value.
#| RC channel 15 value.
#| RC channel 16 value.
#| RC channel 17 value.
#| RC channel 18 value.
#| Receive signal strength indicator.
#|
#|
#| This message provides an API for manually controlling the vehicle using standard joystick axes.
#| The system to be controlled.
#| X-axis, normalized to the range [-1000,1000].
#| Y-axis, normalized to the range [-1000,1000].
#| Z-axis, normalized to the range [0,1000] or [-1000,1000].
#| R-axis, normalized to the range [-1000,1000].
#| A bitfield corresponding to the joystick buttons' current state.
#|
#| A bitfield corresponding to the joystick buttons' 16-31 current state.
#| Set bits to 1 to indicate which of the following extension fields contain valid data.
#| Pitch-only-axis, normalized to the range [-1000,1000].
#| Yaw-only-axis, normalized to the range [-1000,1000].
#|
#|
#| Message encoding a mission item using integer latitude/longitude in degE7.
#| System ID.
#| Component ID.
#| Waypoint ID (sequence number). Starts at zero.
#| The coordinate system of the waypoint.
#| The scheduled action for the waypoint.
#| false:0, true:1.
#| Autocontinue to next waypoint.
#| PARAM1, see MAV_CMD enum.
#| PARAM2, see MAV_CMD enum.
#| PARAM3, see MAV_CMD enum.
#| PARAM4, see MAV_CMD enum.
#| PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7.
#| PARAM6 / y position: local: x position in meters * 1e4, global: longitude in degrees * 10^7.
#| PARAM7 / z position: global: altitude in meters (relative or absolute, depending on frame).
#|
#| Mission type.
#|
#|
#| Metrics typically displayed on a HUD for fixed wing aircraft.
#| Vehicle indicated airspeed (IAS).
#| Current ground speed.
#| Current heading in compass units (0-360, 0=north).
#| Current throttle setting (0 to 100).
#| Current altitude (MSL).
#| Current climb rate.
#|
#|
#| Message encoding a command with parameters as scaled integers.
#| System ID.
#| Component ID.
#| The coordinate system of the COMMAND.
#| The scheduled action for the mission item.
#| Not used.
#| Not used (set 0).
#| PARAM1, see MAV_CMD enum.
#| PARAM2, see MAV_CMD enum.
#| PARAM3, see MAV_CMD enum.
#| PARAM4, see MAV_CMD enum.
#| PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7.
#| PARAM6 / local: y position in meters * 1e4, global: longitude in degrees * 10^7.
#| PARAM7 / z position: global: altitude in meters (relative or absolute, depending on frame).
#|
#|
#| Send a command with up to seven parameters to the MAV.
#| System which should execute the command.
#| Component which should execute the command.
#| Command ID (of command to send).
#| 0: First transmission of this command.
#| Parameter 1 (for the specific command).
#| Parameter 2 (for the specific command).
#| Parameter 3 (for the specific command).
#| Parameter 4 (for the specific command).
#| Parameter 5 (for the specific command).
#| Parameter 6 (for the specific command).
#| Parameter 7 (for the specific command).
#|
#|
#| Report status of a command. Includes feedback whether the command was executed.
#| Command ID (of acknowledged command).
#| Result of command.
#|
#| Also used as result_param1, it can be set with an enum containing the errors reasons.
#| Additional parameter of the result.
#| System ID of the target recipient.
#| Component ID of the target recipient.
#|
#|
#| Cancel a long running command.
#| System executing long running command.
#| Component executing long running command.
#| Command ID (of command to cancel).
#|
#|
#| Sets a desired vehicle attitude. Used by an external controller to command the vehicle.
#| Timestamp (time since system boot).
#| System ID.
#| Component ID.
#| Bitmap to indicate which dimensions should be ignored by the vehicle.
#| Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0).
#| Body roll rate.
#| Body pitch rate.
#| Body yaw rate.
#| Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust).
#|
#|
#| Time synchronization message.
#| Time sync timestamp 1.
#| Time sync timestamp 2.
#|
#| Target system id.
#| Target component id.
#|
#|
#| Distance sensor information for an onboard rangefinder.
#| Timestamp (time since system boot).
#| Minimum distance the sensor can measure.
#| Maximum distance the sensor can measure.
#| Current distance reading.
#| Type of distance sensor.
#| Onboard ID of the sensor.
#| Direction the sensor faces.
#| Measurement variance.
#|
#| Horizontal Field of View (angle) where the distance measurement is valid.
#| Vertical Field of View (angle) where the distance measurement is valid.
#| Quaternion of the sensor orientation in vehicle body frame (w, x, y, z order).
#| Signal quality of the sensor.
#|
#|
#| Battery information.
#| Battery ID.
#| Function of the battery.
#| Type (chemistry) of the battery.
#| Temperature of the battery in centi-degrees celsius.
#| Battery voltage of cells 1 to 10.
#| Battery current, in 10*milliamperes.
#| Consumed charge, in milliampere hours.
#| Consumed energy, in HectoJoules.
#| Remaining battery energy.
#|
#| Remaining battery time.
#| State for extent of discharge.
#| Battery voltages for cells 11 to 14.
#| Battery mode.
#| Fault/health indications.
#|
#|
#| Version and capability of autopilot software.
#| Bitmap of capabilities.
#| Firmware version number.
#| Middleware version number.
#| Operating system version number.
#| HW / board version.
#| Custom version field, commonly the first 8 bytes of the git hash.
#| Custom version field, commonly the first 8 bytes of the git hash.
#| Custom version field, commonly the first 8 bytes of the git hash.
#| ID of the board vendor.
#| ID of the product.
#| UID if provided by hardware.
#|
#| UID if provided by hardware (supersedes the uid field).
#|
#|
#| Provides state for additional features.
#| The VTOL state if applicable.
#| The landed state.
#|
#|
#| Status text message.
#| Severity of status.
#| Status text message, without null termination character.
#|
#| Unique (opaque) id for this statustext message.
#| This chunk's sequence number; indexing is from zero.
#|
#|
#| Send a debug value. The index is used to discriminate between values.
#| Timestamp (time since system boot).
#| index of debug variable.
#| DEBUG value.
#|
#|
#| An ack for a LOGGING_DATA_ACKED message (requires 24-bit MAVLink v2 message ID).
#| system ID of the target
#| component ID of the target
#| sequence number (must match the one in LOGGING_DATA_ACKED)
#|
#|
#| This message is sent to the MAV to write a partial list. If start index == end index, only one item will be transmitted / updated.
#| System ID.
#| Component ID.
#| Start index. Must be smaller / equal to the largest index of the current onboard list.
#| End index, equal or greater than start index.
#|
#| Mission type.
#|
#|
#| Message encoding a mission item (legacy floating-point coordinates).
#| System ID.
#| Component ID.
#| Sequence.
#| The coordinate system of the waypoint.
#| The scheduled action for the waypoint.
#| false:0, true:1.
#| Autocontinue to next waypoint.
#| PARAM1, see MAV_CMD enum.
#| PARAM2, see MAV_CMD enum.
#| PARAM3, see MAV_CMD enum.
#| PARAM4, see MAV_CMD enum.
#| PARAM5 / local: X coordinate, global: latitude.
#| PARAM6 / local: Y coordinate, global: longitude.
#| PARAM7 / local: Z coordinate, global: altitude.
#|
#| Mission type.
#|
#|
#| Reports the current commanded vehicle attitude as specified by the autopilot.
#| Timestamp (time since system boot).
#| Bitmap to indicate which dimensions should be ignored by the vehicle.
#| Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0).
#| Body roll rate.
#| Body pitch rate.
#| Body yaw rate.
#| Collective thrust, normalized to 0 .. 1.
#|
#|
#| Sets a desired vehicle position in a local north-east-down coordinate frame.
#| Timestamp (time since system boot).
#| System ID.
#| Component ID.
#| Valid options are: MAV_FRAME_LOCAL_NED, MAV_FRAME_BODY_NED.
#| Bitmap to indicate which dimensions should be ignored by the vehicle.
#| X Position in NED frame.
#| Y Position in NED frame.
#| Z Position in NED frame (note, altitude is negative in NED).
#| X velocity in NED frame.
#| Y velocity in NED frame.
#| Z velocity in NED frame.
#| X acceleration or force in NED frame.
#| Y acceleration or force in NED frame.
#| Z acceleration or force in NED frame.
#| yaw setpoint.
#| yaw rate setpoint.
#|
#|
#| Reports the current commanded vehicle position, velocity, and acceleration as specified by the autopilot.
#| Timestamp (time since system boot).
#| Valid options are: MAV_FRAME_LOCAL_NED, MAV_FRAME_BODY_NED.
#| Bitmap to indicate which dimensions should be ignored by the vehicle.
#| X Position in NED frame.
#| Y Position in NED frame.
#| Z Position in NED frame.
#| X velocity in NED frame.
#| Y velocity in NED frame.
#| Z velocity in NED frame.
#| X acceleration or force in NED frame.
#| Y acceleration or force in NED frame.
#| Z acceleration or force in NED frame.
#| yaw setpoint.
#| yaw rate setpoint.
#|
#|
#| Optical flow from a flow sensor (e.g. optical mouse sensor).
#| Timestamp (UNIX Epoch time or time since system boot).
#| Sensor ID.
#| Flow in x-sensor direction.
#| Flow in y-sensor direction.
#| Flow in x-sensor direction, angular-speed compensated.
#| Flow in y-sensor direction, angular-speed compensated.
#| Optical flow quality / confidence. 0: bad, 255: maximum quality.
#| Ground distance. Positive value: distance known. Negative value: Unknown distance.
#|
#| Flow rate about X axis.
#| Flow rate about Y axis.
#|
#|
#| The IMU readings in SI units in NED body frame.
#| Timestamp (UNIX Epoch time or time since system boot).
#| X acceleration.
#| Y acceleration.
#| Z acceleration.
#| Angular speed around X axis in body frame.
#| Angular speed around Y axis in body frame.
#| Angular speed around Z axis in body frame.
#| X Magnetic field.
#| Y Magnetic field.
#| Z Magnetic field.
#| Absolute pressure.
#| Differential pressure.
#| Altitude calculated from pressure.
#| Temperature.
#| Bitmap for fields that have updated since last message.
#|
#| Id. Ids are numbered from 0 and map to IMUs numbered from 1.
#|
#|
#| File transfer protocol message: https://mavlink.io/en/services/ftp.html.
#| Network ID (0 for broadcast).
#| System ID (0 for broadcast).
#| Component ID (0 for broadcast).
#| Variable length payload.
#|
#|
#| Contains the home position.
#| Latitude (WGS84).
#| Longitude (WGS84).
#| Altitude (MSL).
#| Local X position of this position in the local coordinate frame (NED).
#| Local Y position of this position in the local coordinate frame (NED).
#| Local Z position of this position in the local coordinate frame (NED).
#| World to surface normal and heading transformation of the takeoff position.
#| Local X position of the end of the approach vector.
#| Local Y position of the end of the approach vector.
#| Local Z position of the end of the approach vector.
#|
#| Timestamp (UNIX Epoch time or time since system boot).
#|
#|
#| A message containing logged data (requires 24-bit MAVLink v2 message ID).
#| system ID of the target
#| component ID of the target
#| sequence number (can wrap)
#| data length
#| offset into data where first message starts
#| logged data
#|
#|
#| Request to read the value of a parameter with either the param_id string id or param_index.
#| System ID
#| Component ID
#| Parameter id, terminated by NULL if the length is less than 16 human-readable chars.
#| Parameter index. Set to -1 to use the Parameter ID field as identifier.
#|
#|
#| Request all parameters of this component.
#| System ID
#| Component ID
#|
#|
#| Emit the value of a parameter.
#| Parameter id, terminated by NULL if the length is less than 16 human-readable chars.
#| Parameter value
#| Parameter type.
#| Total number of parameters
#| Index of this parameter
#|
#|
#| Set a parameter value.
#| System ID
#| Component ID
#| Parameter id, terminated by NULL if the length is less than 16 human-readable chars.
#| Parameter value
#| Parameter type.
#|
#|
#| Response from a PARAM_EXT_SET message.
#| Parameter id, terminated by NULL if the length is less than 16 human-readable chars.
#| Parameter value (new value if PARAM_ACK_ACCEPTED, current value otherwise)
#| Parameter type.
#| Result code.
#|
#|
#|