Struct mavlink::common::ATTITUDE_DATA
source · pub struct ATTITUDE_DATA {
pub time_boot_ms: u32,
pub roll: f32,
pub pitch: f32,
pub yaw: f32,
pub rollspeed: f32,
pub pitchspeed: f32,
pub yawspeed: f32,
}
Available on crate feature
common
only.Expand description
id: 30 The attitude in the aeronautical frame (right-handed, Z-down, Y-right, X-front, ZYX, intrinsic)..
Fields§
§time_boot_ms: u32
Timestamp (time since system boot)..
roll: f32
Roll angle (-pi..+pi).
pitch: f32
Pitch angle (-pi..+pi).
yaw: f32
Yaw angle (-pi..+pi).
rollspeed: f32
Roll angular speed.
pitchspeed: f32
Pitch angular speed.
yawspeed: f32
Yaw angular speed.
Implementations§
source§impl ATTITUDE_DATA
impl ATTITUDE_DATA
pub const ENCODED_LEN: usize = 28usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for ATTITUDE_DATA
impl Clone for ATTITUDE_DATA
source§fn clone(&self) -> ATTITUDE_DATA
fn clone(&self) -> ATTITUDE_DATA
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ATTITUDE_DATA
impl Debug for ATTITUDE_DATA
source§impl Default for ATTITUDE_DATA
impl Default for ATTITUDE_DATA
source§impl<'de> Deserialize<'de> for ATTITUDE_DATA
impl<'de> Deserialize<'de> for ATTITUDE_DATA
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MessageData for ATTITUDE_DATA
impl MessageData for ATTITUDE_DATA
const ID: u32 = 30u32
const NAME: &'static str = "ATTITUDE"
const EXTRA_CRC: u8 = 39u8
const ENCODED_LEN: usize = 28usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for ATTITUDE_DATA
impl PartialEq for ATTITUDE_DATA
source§impl Serialize for ATTITUDE_DATA
impl Serialize for ATTITUDE_DATA
impl StructuralPartialEq for ATTITUDE_DATA
Auto Trait Implementations§
impl Freeze for ATTITUDE_DATA
impl RefUnwindSafe for ATTITUDE_DATA
impl Send for ATTITUDE_DATA
impl Sync for ATTITUDE_DATA
impl Unpin for ATTITUDE_DATA
impl UnwindSafe for ATTITUDE_DATA
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)