MissionCurrent class

Message that announces the sequence number of the current target mission item (that the system will fly towards/execute when the mission is running). This message should be streamed all the time (nominally at 1Hz). This message should be emitted following a call to MAV_CMD_DO_SET_MISSION_CURRENT or SET_MISSION_CURRENT.

MISSION_CURRENT

Implemented types

Constructors

MissionCurrent({required uint16_t seq, required uint16_t total, required MissionState missionState, required uint8_t missionMode, required uint32_t missionId, required uint32_t fenceId, required uint32_t rallyPointsId})
MissionCurrent.parse(ByteData data_)
factory

Properties

fenceId uint32_t
Id of current on-vehicle fence plan, or 0 if IDs are not supported or there is no fence loaded. GCS can use this to track changes to the fence plan type. The same value is returned on fence upload (in the MISSION_ACK).
final
hashCode int
The hash code for this object.
no setterinherited
mavlinkCrcExtra int
no setteroverride
mavlinkMessageId int
no setteroverride
missionId uint32_t
Id of current on-vehicle mission plan, or 0 if IDs are not supported or there is no mission loaded. GCS can use this to track changes to the mission plan type. The same value is returned on mission upload (in the MISSION_ACK).
final
missionMode uint8_t
Vehicle is in a mode that can execute mission items or suspended. 0: Unknown, 1: In mission mode, 2: Suspended (not in mission mode).
final
missionState MissionState
Mission state machine state. MISSION_STATE_UNKNOWN if state reporting not supported.
final
rallyPointsId uint32_t
Id of current on-vehicle rally point plan, or 0 if IDs are not supported or there are no rally points loaded. GCS can use this to track changes to the rally point plan type. The same value is returned on rally point upload (in the MISSION_ACK).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seq uint16_t
Sequence
final
total uint16_t
Total number of mission items on vehicle (on last item, sequence == total). If the autopilot stores its home location as part of the mission this will be excluded from the total. 0: Not supported, UINT16_MAX if no mission is present on the vehicle.
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