pub struct AvssDroneImu {
pub time_boot_ms: u32,
pub q1: f32,
pub q2: f32,
pub q3: f32,
pub q4: f32,
pub xacc: f32,
pub yacc: f32,
pub zacc: f32,
pub xgyro: f32,
pub ygyro: f32,
pub zgyro: f32,
}Expand description
MAVLink AVSS_DRONE_IMU message.
The minimum supported MAVLink version is MAVLink 2.
§Description
Drone IMU data. Quaternion order is w, x, y, z and a zero rotation would be expressed as (1 0 0 0).
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
AvssDroneImu (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§time_boot_ms: u32MAVLink field time_boot_ms.
Timestamp (time since FC boot).
q1: f32MAVLink field q1.
Quaternion component 1, w (1 in null-rotation)
q2: f32MAVLink field q2.
Quaternion component 2, x (0 in null-rotation)
q3: f32MAVLink field q3.
Quaternion component 3, y (0 in null-rotation)
q4: f32MAVLink field q4.
Quaternion component 4, z (0 in null-rotation)
xacc: f32MAVLink field xacc.
X acceleration
yacc: f32MAVLink field yacc.
Y acceleration
zacc: f32MAVLink field zacc.
Z acceleration
xgyro: f32MAVLink field xgyro.
Angular speed around X axis
ygyro: f32MAVLink field ygyro.
Angular speed around Y axis
zgyro: f32MAVLink field zgyro.
Angular speed around Z axis
Implementations§
Source§impl AvssDroneImu
impl AvssDroneImu
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> MessageId
pub const fn message_id() -> MessageId
Message ID.
Sourcepub const fn min_supported_mavlink_version() -> MavLinkVersion
pub const fn min_supported_mavlink_version() -> MavLinkVersion
Minimum supported MAVLink version for this message.
Trait Implementations§
Source§impl Clone for AvssDroneImu
impl Clone for AvssDroneImu
Source§fn clone(&self) -> AvssDroneImu
fn clone(&self) -> AvssDroneImu
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AvssDroneImu
impl Debug for AvssDroneImu
Source§impl Default for AvssDroneImu
impl Default for AvssDroneImu
Source§impl<'de> Deserialize<'de> for AvssDroneImu
impl<'de> Deserialize<'de> for AvssDroneImu
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<AvssDroneImu> for All
impl From<AvssDroneImu> for All
Source§fn from(value: AvssDroneImu) -> Self
fn from(value: AvssDroneImu) -> Self
Source§impl IntoPayload for AvssDroneImu
impl IntoPayload for AvssDroneImu
Source§impl MessageSpec for AvssDroneImu
impl MessageSpec for AvssDroneImu
Source§impl MessageSpecStatic for AvssDroneImu
impl MessageSpecStatic for AvssDroneImu
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> MessageId
fn message_id() -> MessageId
ID.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for AvssDroneImu
impl NamedType for AvssDroneImu
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
Source§impl PartialEq for AvssDroneImu
impl PartialEq for AvssDroneImu
Source§impl Serialize for AvssDroneImu
impl Serialize for AvssDroneImu
Source§impl TryFrom<&Payload> for AvssDroneImu
impl TryFrom<&Payload> for AvssDroneImu
Source§impl Type for AvssDroneImu
impl Type for AvssDroneImu
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
definition will be put into the type map.