CurrentMode class

Get the current mode. This should be emitted on any mode change, and broadcast at low rate (nominally 0.5 Hz). It may be requested using MAV_CMD_REQUEST_MESSAGE.

CURRENT_MODE

Implemented types

Constructors

CurrentMode({required uint32_t customMode, required uint32_t intendedCustomMode, required MavStandardMode standardMode})
CurrentMode.parse(ByteData data_)
factory

Properties

customMode uint32_t
A bitfield for use for autopilot-specific flags
final
hashCode int
The hash code for this object.
no setterinherited
intendedCustomMode uint32_t
The custom_mode of the mode that was last commanded by the user (for example, with MAV_CMD_DO_SET_STANDARD_MODE, MAV_CMD_DO_SET_MODE or via RC). This should usually be the same as custom_mode. It will be different if the vehicle is unable to enter the intended mode, or has left that mode due to a failsafe condition. 0 indicates the intended custom mode is unknown/not supplied
final
mavlinkCrcExtra int
no setteroverride
mavlinkMessageId int
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
standardMode MavStandardMode
Standard mode.
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