CommandInt class

Send a command with up to seven parameters to the MAV, where params 5 and 6 are integers and the other values are floats. This is preferred over COMMAND_LONG as it allows the MAV_FRAME to be specified for interpreting positional information, such as altitude. COMMAND_INT is also preferred when sending latitude and longitude data in params 5 and 6, as it allows for greater precision. Param 5 and 6 encode positional data as scaled integers, where the scaling depends on the actual command value. NaN or INT32_MAX may be used in float/integer params (respectively) to indicate optional/default values (e.g. to use the component's current latitude, yaw rather than a specific value). The command microservice is documented at https://mavlink.io/en/services/command.html

COMMAND_INT

Implemented types

Constructors

CommandInt({required float param1, required float param2, required float param3, required float param4, required int32_t x, required int32_t y, required float z, required MavCmd command, required uint8_t targetSystem, required uint8_t targetComponent, required MavFrame frame, required uint8_t current, required uint8_t autocontinue})
CommandInt.parse(ByteData data_)
factory

Properties

autocontinue uint8_t
Not used (set 0).
final
command MavCmd
The scheduled action for the mission item.
final
current uint8_t
Not used.
final
frame MavFrame
The coordinate system of the COMMAND.
final
hashCode int
The hash code for this object.
no setterinherited
mavlinkCrcExtra int
no setteroverride
mavlinkMessageId int
no setteroverride
param1 float
PARAM1, see MAV_CMD enum
final
param2 float
PARAM2, see MAV_CMD enum
final
param3 float
PARAM3, see MAV_CMD enum
final
param4 float
PARAM4, see MAV_CMD enum
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetComponent uint8_t
Component ID
final
targetSystem uint8_t
System ID
final
x int32_t
PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7
final
y int32_t
PARAM6 / local: y position in meters * 1e4, global: longitude in degrees * 10^7
final
z float
PARAM7 / z position: global: altitude in meters (relative or absolute, depending on frame).
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