Struct sbp::messages::orientation::msg_orient_quat::MsgOrientQuat
source · pub struct MsgOrientQuat {
pub sender_id: Option<u16>,
pub tow: u32,
pub w: i32,
pub x: i32,
pub y: i32,
pub z: i32,
pub w_accuracy: f32,
pub x_accuracy: f32,
pub y_accuracy: f32,
pub z_accuracy: f32,
pub flags: u8,
}
Expand description
Quaternion 4 component vector
This message reports the quaternion vector describing the vehicle body frame’s orientation with respect to a local-level NED frame. The components of the vector should sum to a unit vector assuming that the LSB of each component as a value of 2^-31. This message will only be available in future INS versions of Swift Products and is not produced by Piksi Multi or Duro.
Fields§
§sender_id: Option<u16>
The message sender_id
tow: u32
GPS Time of Week
w: i32
Real component
x: i32
1st imaginary component
y: i32
2nd imaginary component
z: i32
3rd imaginary component
w_accuracy: f32
Estimated standard deviation of w
x_accuracy: f32
Estimated standard deviation of x
y_accuracy: f32
Estimated standard deviation of y
z_accuracy: f32
Estimated standard deviation of z
flags: u8
Status flags
Implementations§
source§impl MsgOrientQuat
impl MsgOrientQuat
Gets the InsNavigationMode stored in the flags
bitfield.
Returns Ok
if the bitrange contains a known InsNavigationMode
variant.
Otherwise the value of the bitrange is returned as an Err(u8)
. This may be because of a malformed message,
or because new variants of InsNavigationMode
were added.
Set the bitrange corresponding to the InsNavigationMode of the flags
bitfield.
Trait Implementations§
source§impl Clone for MsgOrientQuat
impl Clone for MsgOrientQuat
source§fn clone(&self) -> MsgOrientQuat
fn clone(&self) -> MsgOrientQuat
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl ConcreteMessage for MsgOrientQuat
impl ConcreteMessage for MsgOrientQuat
source§const MESSAGE_TYPE: u16 = 544u16
const MESSAGE_TYPE: u16 = 544u16
source§const MESSAGE_NAME: &'static str = "MSG_ORIENT_QUAT"
const MESSAGE_NAME: &'static str = "MSG_ORIENT_QUAT"
source§impl Debug for MsgOrientQuat
impl Debug for MsgOrientQuat
source§impl<'de> Deserialize<'de> for MsgOrientQuat
impl<'de> Deserialize<'de> for MsgOrientQuat
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 FriendlyName for MsgOrientQuat
impl FriendlyName for MsgOrientQuat
fn friendly_name() -> &'static str
source§impl From<MsgOrientQuat> for Sbp
impl From<MsgOrientQuat> for Sbp
source§fn from(msg: MsgOrientQuat) -> Self
fn from(msg: MsgOrientQuat) -> Self
source§impl PartialEq for MsgOrientQuat
impl PartialEq for MsgOrientQuat
source§fn eq(&self, other: &MsgOrientQuat) -> bool
fn eq(&self, other: &MsgOrientQuat) -> bool
self
and other
values to be equal, and is used
by ==
.