Heartbeat class

The heartbeat message shows that a system or component is present and responding. The type and autopilot fields (along with the message component id), allow the receiving system to treat further messages from this system appropriately (e.g. by laying out the user interface based on the autopilot). This microservice is documented at https://mavlink.io/en/services/heartbeat.html

HEARTBEAT

Implemented types

Constructors

Heartbeat({required uint32_t customMode, required MavType type, required MavAutopilot autopilot, required MavModeFlag baseMode, required MavState systemStatus, required uint8_t mavlinkVersion})
Heartbeat.parse(ByteData data_)
factory

Properties

autopilot MavAutopilot
Autopilot type / class. Use MAV_AUTOPILOT_INVALID for components that are not flight controllers.
final
baseMode MavModeFlag
System mode bitmap.
final
customMode uint32_t
A bitfield for use for autopilot-specific flags
final
hashCode int
The hash code for this object.
no setterinherited
mavlinkCrcExtra int
no setteroverride
mavlinkMessageId int
no setteroverride
mavlinkVersion uint8_t
MAVLink version, not writable by user, gets added by protocol because of magic data type: uint8_t_mavlink_version
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
systemStatus MavState
System status flag.
final
type MavType
Vehicle or component type. For a flight controller component the vehicle type (quadrotor, helicopter, etc.). For other components the component type (e.g. camera, gimbal, etc.). This should be used in preference to component id for identifying the component type.
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