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 → ActuatorConfiguration
Not used (set 0).
final
command → ActuatorConfiguration
The scheduled action for the mission item.
final
current → ActuatorConfiguration
Not used.
final
frame → ActuatorConfiguration
The coordinate system of the COMMAND.
final
hashCode → ActuatorConfiguration
The hash code for this object.
no setterinherited
mavlinkCrcExtra → ActuatorConfiguration
no setteroverride
mavlinkMessageId → ActuatorConfiguration
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 → ActuatorConfiguration
Component ID
final
targetSystem → ActuatorConfiguration
System ID
final
x → ActuatorConfiguration
PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7
final
y → ActuatorConfiguration
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