Struct mavlink::common::SIM_STATE_DATA
source · pub struct SIM_STATE_DATA {Show 23 fields
pub q1: f32,
pub q2: f32,
pub q3: f32,
pub q4: f32,
pub roll: f32,
pub pitch: f32,
pub yaw: f32,
pub xacc: f32,
pub yacc: f32,
pub zacc: f32,
pub xgyro: f32,
pub ygyro: f32,
pub zgyro: f32,
pub lat: f32,
pub lon: f32,
pub alt: f32,
pub std_dev_horz: f32,
pub std_dev_vert: f32,
pub vn: f32,
pub ve: f32,
pub vd: f32,
pub lat_int: i32,
pub lon_int: i32,
}
common
only.Expand description
id: 108 Status of simulation environment, if used.
Fields§
§q1: f32
True attitude quaternion component 1, w (1 in null-rotation).
q2: f32
True attitude quaternion component 2, x (0 in null-rotation).
q3: f32
True attitude quaternion component 3, y (0 in null-rotation).
q4: f32
True attitude quaternion component 4, z (0 in null-rotation).
roll: f32
Attitude roll expressed as Euler angles, not recommended except for human-readable outputs.
pitch: f32
Attitude pitch expressed as Euler angles, not recommended except for human-readable outputs.
yaw: f32
Attitude yaw expressed as Euler angles, not recommended except for human-readable outputs.
xacc: f32
X acceleration.
yacc: f32
Y acceleration.
zacc: f32
Z acceleration.
xgyro: f32
Angular speed around X axis.
ygyro: f32
Angular speed around Y axis.
zgyro: f32
Angular speed around Z axis.
lat: f32
Latitude (lower precision). Both this and the lat_int field should be set..
lon: f32
Longitude (lower precision). Both this and the lon_int field should be set..
alt: f32
Altitude.
std_dev_horz: f32
Horizontal position standard deviation.
std_dev_vert: f32
Vertical position standard deviation.
vn: f32
True velocity in north direction in earth-fixed NED frame.
ve: f32
True velocity in east direction in earth-fixed NED frame.
vd: f32
True velocity in down direction in earth-fixed NED frame.
lat_int: i32
Latitude (higher precision). If 0, recipients should use the lat field value (otherwise this field is preferred)..
lon_int: i32
Longitude (higher precision). If 0, recipients should use the lon field value (otherwise this field is preferred)..
Implementations§
source§impl SIM_STATE_DATA
impl SIM_STATE_DATA
pub const ENCODED_LEN: usize = 92usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for SIM_STATE_DATA
impl Clone for SIM_STATE_DATA
source§fn clone(&self) -> SIM_STATE_DATA
fn clone(&self) -> SIM_STATE_DATA
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SIM_STATE_DATA
impl Debug for SIM_STATE_DATA
source§impl Default for SIM_STATE_DATA
impl Default for SIM_STATE_DATA
source§impl<'de> Deserialize<'de> for SIM_STATE_DATA
impl<'de> Deserialize<'de> for SIM_STATE_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>,
source§impl MessageData for SIM_STATE_DATA
impl MessageData for SIM_STATE_DATA
const ID: u32 = 108u32
const NAME: &'static str = "SIM_STATE"
const EXTRA_CRC: u8 = 32u8
const ENCODED_LEN: usize = 92usize
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 SIM_STATE_DATA
impl PartialEq for SIM_STATE_DATA
source§impl Serialize for SIM_STATE_DATA
impl Serialize for SIM_STATE_DATA
impl StructuralPartialEq for SIM_STATE_DATA
Auto Trait Implementations§
impl Freeze for SIM_STATE_DATA
impl RefUnwindSafe for SIM_STATE_DATA
impl Send for SIM_STATE_DATA
impl Sync for SIM_STATE_DATA
impl Unpin for SIM_STATE_DATA
impl UnwindSafe for SIM_STATE_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
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)
clone_to_uninit
)