GimbalDeviceSetAttitude class
Low level message to control a gimbal device's attitude. This message is to be sent from the gimbal manager to the gimbal device component. The quaternion and angular velocities can be set to NaN according to use case. For the angles encoded in the quaternion and the angular velocities holds: If the flag GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME is set, then they are relative to the vehicle heading (vehicle frame). If the flag GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is set, then they are relative to absolute North (earth frame). If neither of these flags are set, then (for backwards compatibility) it holds: If the flag GIMBAL_DEVICE_FLAGS_YAW_LOCK is set, then they are relative to absolute North (earth frame), else they are relative to the vehicle heading (vehicle frame). Setting both GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME and GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is not allowed. These rules are to ensure backwards compatibility. New implementations should always set either GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME or GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME.
GIMBAL_DEVICE_SET_ATTITUDE
- Implemented types
Constructors
-
GimbalDeviceSetAttitude({required List<
float> q, required float angularVelocityX, required float angularVelocityY, required float angularVelocityZ, required GimbalDeviceFlags flags, required uint8_t targetSystem, required uint8_t targetComponent}) - GimbalDeviceSetAttitude.parse(ByteData data_)
-
factory
Properties
- angularVelocityX → float
-
X component of angular velocity (positive: rolling to the right). The frame is described in the message description. NaN to be ignored.
final
- angularVelocityY → float
-
Y component of angular velocity (positive: pitching up). The frame is described in the message description. NaN to be ignored.
final
- angularVelocityZ → float
-
Z component of angular velocity (positive: yawing to the right). The frame is described in the message description. NaN to be ignored.
final
- flags → GimbalDeviceFlags
-
Low level gimbal flags.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mavlinkCrcExtra → int
-
no setteroverride
- mavlinkMessageId → int
-
no setteroverride
-
q
→ List<
float> -
Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation). The frame is described in the message description. Set fields to NaN to be ignored.
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
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