Struct sbp::messages::orientation::msg_angular_rate::MsgAngularRate
source · [−]pub struct MsgAngularRate {
pub sender_id: Option<u16>,
pub tow: u32,
pub x: i32,
pub y: i32,
pub z: i32,
pub flags: u8,
}
Expand description
Vehicle Body Frame instantaneous angular rates
This message reports the orientation rates in the vehicle body frame. The values represent the measurements a strapped down gyroscope would make and are not equivalent to the time derivative of the Euler angles. The orientation and origin of the user frame is specified via device settings. By convention, the vehicle x-axis is expected to be aligned with the forward direction, while the vehicle y-axis is expected to be aligned with the right direction, and the vehicle z-axis should be aligned with the down direction. 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
x: i32
angular rate about x axis
y: i32
angular rate about y axis
z: i32
angular rate about z axis
flags: u8
Status flags
Implementations
sourceimpl MsgAngularRate
impl MsgAngularRate
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 MsgAngularRate
impl Clone for MsgAngularRate
sourcefn clone(&self) -> MsgAngularRate
fn clone(&self) -> MsgAngularRate
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 MsgAngularRate
impl ConcreteMessage for MsgAngularRate
sourceconst MESSAGE_TYPE: u16
const MESSAGE_TYPE: u16
The message type.
sourceconst MESSAGE_NAME: &'static str
const MESSAGE_NAME: &'static str
The message name.
sourceimpl Debug for MsgAngularRate
impl Debug for MsgAngularRate
sourceimpl From<MsgAngularRate> for Sbp
impl From<MsgAngularRate> for Sbp
sourcefn from(msg: MsgAngularRate) -> Self
fn from(msg: MsgAngularRate) -> Self
Performs the conversion.
sourceimpl SbpMessage for MsgAngularRate
impl SbpMessage for MsgAngularRate
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 MsgAngularRate
impl Send for MsgAngularRate
impl Sync for MsgAngularRate
impl Unpin for MsgAngularRate
impl UnwindSafe for MsgAngularRate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more