AttitudeQuaternion class

The attitude in the aeronautical frame (right-handed, Z-down, X-front, Y-right), expressed as quaternion. Quaternion order is w, x, y, z and a zero rotation would be expressed as (1 0 0 0).

ATTITUDE_QUATERNION

Implemented types

Constructors

AttitudeQuaternion({required uint32_t timeBootMs, required float q1, required float q2, required float q3, required float q4, required float rollspeed, required float pitchspeed, required float yawspeed, required List<float> reprOffsetQ})
AttitudeQuaternion.parse(ByteData data_)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
mavlinkCrcExtra int
no setteroverride
mavlinkMessageId int
no setteroverride
pitchspeed float
Pitch angular speed
final
q1 float
Quaternion component 1, w (1 in null-rotation)
final
q2 float
Quaternion component 2, x (0 in null-rotation)
final
q3 float
Quaternion component 3, y (0 in null-rotation)
final
q4 float
Quaternion component 4, z (0 in null-rotation)
final
reprOffsetQ List<float>
Rotation offset by which the attitude quaternion and angular speed vector should be rotated for user display (quaternion with w, x, y, z order, zero-rotation is 1, 0, 0, 0, send 0, 0, 0, 0 if field not supported). This field is intended for systems in which the reference attitude may change during flight. For example, tailsitters VTOLs rotate their reference attitude by 90 degrees between hover mode and fixed wing mode, thus repr_offset_q is equal to 1, 0, 0, 0 in hover mode and equal to 0.7071, 0, 0.7071, 0 in fixed wing mode.
final
rollspeed float
Roll angular speed
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeBootMs uint32_t
Timestamp (time since system boot).
final
yawspeed float
Yaw angular speed
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