pub struct MountOrientation {
pub time_boot_ms: u32,
pub roll: f32,
pub pitch: f32,
pub yaw: f32,
pub yaw_absolute: f32,
}Expand description
MAVLink MOUNT_ORIENTATION message.
The minimum supported MAVLink version is MAVLink 2.
§Description
Orientation of a mount
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
MountOrientation (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 system boot).
roll: f32MAVLink field roll.
Roll in global frame (set to NaN for invalid).
pitch: f32MAVLink field pitch.
Pitch in global frame (set to NaN for invalid).
yaw: f32MAVLink field yaw.
Yaw relative to vehicle (set to NaN for invalid).
yaw_absolute: f32MAVLink field yaw_absolute.
Yaw in absolute frame relative to Earth’s North, north is 0 (set to NaN for invalid).
Implementations§
Source§impl MountOrientation
impl MountOrientation
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> u32
pub const fn message_id() -> u32
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 MountOrientation
impl Clone for MountOrientation
Source§fn clone(&self) -> MountOrientation
fn clone(&self) -> MountOrientation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MountOrientation
impl Debug for MountOrientation
Source§impl Default for MountOrientation
impl Default for MountOrientation
Source§fn default() -> MountOrientation
fn default() -> MountOrientation
Source§impl<'de> Deserialize<'de> for MountOrientation
impl<'de> Deserialize<'de> for MountOrientation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MountOrientation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MountOrientation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<MountOrientation> for Common
impl From<MountOrientation> for Common
Source§fn from(value: MountOrientation) -> Common
fn from(value: MountOrientation) -> Common
Source§impl IntoPayload for MountOrientation
impl IntoPayload for MountOrientation
Source§impl MessageSpec for MountOrientation
impl MessageSpec for MountOrientation
Source§impl MessageSpecStatic for MountOrientation
impl MessageSpecStatic for MountOrientation
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> u32
fn message_id() -> u32
ID.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for MountOrientation
impl NamedType for MountOrientation
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 MountOrientation
impl PartialEq for MountOrientation
Source§impl Serialize for MountOrientation
impl Serialize for MountOrientation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl TryFrom<&Payload> for MountOrientation
impl TryFrom<&Payload> for MountOrientation
Source§impl Type for MountOrientation
impl Type for MountOrientation
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.