Vehicle State
VehicleState
ID 500
- Payload
- ≥ 31 bytes, variable
- Packet
- ≥ 53 bytes
- Source
- vehicle
- Category
- Vehicle Supervision
This message summarizes the overall state of the vehicle. It can contains information regarding:
- The overall operation mode.
- Any error conditions.
- Current maneuver execution.
- Active control loops.
#Fields
| Offset | Field | Type | Unit | Range | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | #op_modeOperation Mode |
uint8_t |
Enumerated | – | The overall operation mode.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1 | #error_countErrors -- Count |
uint8_t |
– | – | Error count for monitored entitites. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | #error_entsErrors -- Entities |
plaintext |
– | – | The monitored entities with error conditions. This is a comma separated list of entity names. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| var | #maneuver_typeManeuver -- Type |
uint16_t |
– | – | Type of maneuver being executed, when in MANEUVER mode. The value is the IMC serialization ID of the corresponding maneuver. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| var | #maneuver_stimeManeuver -- Start Time |
fp64_t |
s | – | Start time of maneuver being executed (Epoch time), when in MANEUVER mode. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| var | #maneuver_etaManeuver -- ETA |
uint16_t |
s | – | Estimated time for maneuver completion. The value will be 65535 if the time is unknown or undefined. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| var | #control_loopsControl Loops |
uint32_t |
Bitfield | – | Enabled control loops. 20 flags from
|
0x00000000 | CL_NONE | None |
0x00000001 | CL_PATH | Path Control |
0x00000002 | CL_TELEOPERATION | Teleoperation Control |
0x00000004 | CL_ALTITUDE | Altitude Control |
0x00000008 | CL_DEPTH | Depth Control |
0x00000010 | CL_ROLL | Roll Control |
0x00000020 | CL_PITCH | Pitch Control |
0x00000040 | CL_YAW | Yaw Control |
0x00000080 | CL_SPEED | Speed Control |
0x00000100 | CL_YAW_RATE | Yaw Rate Control |
0x00000200 | CL_VERTICAL_RATE | Vertical Rate Control |
0x00000400 | CL_TORQUE | Torque Control |
0x00000800 | CL_FORCE | Force Control |
0x00001000 | CL_VELOCITY | Velocity Control |
0x00002000 | CL_THROTTLE | Throttle Control |
0x00004000 | CL_HOVERING | Hovering Control |
0x00008000 | CL_PADDLING | Paddling Control |
0x40000000 | CL_EXTERNAL | Unspecified External Control |
0x80000000 | CL_NO_OVERRIDE | Non-overridable control |
0xFFFFFFFF | CL_ALL | All |
flagsFlagsuint8_t0x01 | VFLG_MANEUVER_DONE | Maneuver Done |
last_errorLast Error -- DescriptionplaintextDescription of last error.
last_error_timeLast Error -- Timefp64_tTime of last error (Epoch time).