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
sourceimpl 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
sourceimpl Clone for MsgOrientQuat
impl Clone for MsgOrientQuat
sourcefn clone(&self) -> MsgOrientQuat
fn clone(&self) -> MsgOrientQuat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl ConcreteMessage for MsgOrientQuat
impl ConcreteMessage for MsgOrientQuat
sourceconst MESSAGE_TYPE: u16 = 544u16
const MESSAGE_TYPE: u16 = 544u16
The message type.
sourceconst MESSAGE_NAME: &'static str = "MSG_ORIENT_QUAT"
const MESSAGE_NAME: &'static str = "MSG_ORIENT_QUAT"
The message name.
sourceimpl Debug for MsgOrientQuat
impl Debug for MsgOrientQuat
sourceimpl From<MsgOrientQuat> for Sbp
impl From<MsgOrientQuat> for Sbp
sourcefn from(msg: MsgOrientQuat) -> Self
fn from(msg: MsgOrientQuat) -> Self
Converts to this type from the input type.
sourceimpl SbpMessage for MsgOrientQuat
impl SbpMessage for MsgOrientQuat
sourcefn message_name(&self) -> &'static str
fn message_name(&self) -> &'static str
Get the message name.
sourcefn message_type(&self) -> u16
fn message_type(&self) -> u16
Get the message type.
sourcefn set_sender_id(&mut self, new_id: u16)
fn set_sender_id(&mut self, new_id: u16)
Set the sender id.
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Number of bytes this message will take on the wire.
Auto Trait Implementations
impl RefUnwindSafe for MsgOrientQuat
impl Send for MsgOrientQuat
impl Sync for MsgOrientQuat
impl Unpin for MsgOrientQuat
impl UnwindSafe for MsgOrientQuat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more