SysStatus class
The general system state. If the system is following the MAVLink standard, the system state is mainly defined by three orthogonal states/modes: The system mode, which is either LOCKED (motors shut down and locked), MANUAL (system under RC control), GUIDED (system with autonomous position control, position setpoint controlled manually) or AUTO (system guided by path/waypoint planner). The NAV_MODE defined the current flight state: LIFTOFF (often an open-loop maneuver), LANDING, WAYPOINTS or VECTOR. This represents the internal navigation state machine. The system status shows whether the system is currently active or not and if an emergency occurred. During the CRITICAL and EMERGENCY states the MAV is still considered to be active, but should start emergency procedures autonomously. After a failure occurred it should first move from active to critical to allow manual intervention and then move to emergency after a certain timeout.
SYS_STATUS
- Implemented types
Constructors
- SysStatus({required MavSysStatusSensor onboardControlSensorsPresent, required MavSysStatusSensor onboardControlSensorsEnabled, required MavSysStatusSensor onboardControlSensorsHealth, required uint16_t load, required uint16_t voltageBattery, required int16_t currentBattery, required uint16_t dropRateComm, required uint16_t errorsComm, required uint16_t errorsCount1, required uint16_t errorsCount2, required uint16_t errorsCount3, required uint16_t errorsCount4, required int8_t batteryRemaining, required MavSysStatusSensorExtended onboardControlSensorsPresentExtended, required MavSysStatusSensorExtended onboardControlSensorsEnabledExtended, required MavSysStatusSensorExtended onboardControlSensorsHealthExtended})
- SysStatus.parse(ByteData data_)
-
factory
Properties
- batteryRemaining → int8_t
-
Battery energy remaining, -1: Battery remaining energy not sent by autopilot
final
- currentBattery → int16_t
-
Battery current, -1: Current not sent by autopilot
final
- dropRateComm → uint16_t
-
Communication drop rate, (UART, I2C, SPI, CAN), dropped packets on all links (packets that were corrupted on reception on the MAV)
final
- errorsComm → uint16_t
-
Communication errors (UART, I2C, SPI, CAN), dropped packets on all links (packets that were corrupted on reception on the MAV)
final
- errorsCount1 → uint16_t
-
Autopilot-specific errors
final
- errorsCount2 → uint16_t
-
Autopilot-specific errors
final
- errorsCount3 → uint16_t
-
Autopilot-specific errors
final
- errorsCount4 → uint16_t
-
Autopilot-specific errors
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- load → uint16_t
-
Maximum usage in percent of the mainloop time. Values:
0-1000
- should always be below 1000final - mavlinkCrcExtra → int
-
no setteroverride
- mavlinkMessageId → int
-
no setteroverride
- onboardControlSensorsEnabled → MavSysStatusSensor
-
Bitmap showing which onboard controllers and sensors are enabled: Value of 0: not enabled. Value of 1: enabled.
final
- onboardControlSensorsEnabledExtended → MavSysStatusSensorExtended
-
Bitmap showing which onboard controllers and sensors are enabled: Value of 0: not enabled. Value of 1: enabled.
final
- onboardControlSensorsHealth → MavSysStatusSensor
-
Bitmap showing which onboard controllers and sensors have an error (or are operational). Value of 0: error. Value of 1: healthy.
final
- onboardControlSensorsHealthExtended → MavSysStatusSensorExtended
-
Bitmap showing which onboard controllers and sensors have an error (or are operational). Value of 0: error. Value of 1: healthy.
final
- onboardControlSensorsPresent → MavSysStatusSensor
-
Bitmap showing which onboard controllers and sensors are present. Value of 0: not present. Value of 1: present.
final
- onboardControlSensorsPresentExtended → MavSysStatusSensorExtended
-
Bitmap showing which onboard controllers and sensors are present. Value of 0: not present. Value of 1: present.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- voltageBattery → uint16_t
-
Battery voltage, UINT16_MAX: Voltage not sent by autopilot
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → ByteData -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- mavlinkEncodedLength → const int