[−][src]Struct bno080::wrapper::BNO080
Methods
impl<SI> BNO080<SI>
[src]
pub fn new_with_interface(sensor_interface: SI) -> Self
[src]
impl<SI, SE> BNO080<SI> where
SI: SensorInterface<SensorError = SE>,
SE: Debug,
[src]
SI: SensorInterface<SensorError = SE>,
SE: Debug,
pub fn eat_all_messages(&mut self, delay: &mut impl DelayMs<u8>)
[src]
Consume all available messages on the port without processing them
pub fn handle_all_messages(
&mut self,
delay: &mut impl DelayMs<u8>,
timeout_ms: u8
) -> u32
[src]
&mut self,
delay: &mut impl DelayMs<u8>,
timeout_ms: u8
) -> u32
Handle any messages with a timeout
pub fn handle_one_message(
&mut self,
delay: &mut impl DelayMs<u8>,
max_ms: u8
) -> u32
[src]
&mut self,
delay: &mut impl DelayMs<u8>,
max_ms: u8
) -> u32
return the number of messages handled
pub fn eat_one_message(&mut self, delay: &mut impl DelayMs<u8>) -> usize
[src]
Receive and ignore one message, returning the size of the packet received or zero if there was no packet to read.
pub fn handle_received_packet(&mut self, received_len: usize)
[src]
pub fn init(
&mut self,
delay_source: &mut impl DelayMs<u8>
) -> Result<(), WrapperError<SE>>
[src]
&mut self,
delay_source: &mut impl DelayMs<u8>
) -> Result<(), WrapperError<SE>>
The BNO080 starts up with all sensors disabled, waiting for the application to configure it.
pub fn enable_rotation_vector(
&mut self,
millis_between_reports: u16
) -> Result<(), WrapperError<SE>>
[src]
&mut self,
millis_between_reports: u16
) -> Result<(), WrapperError<SE>>
Tell the sensor to start reporting the fused rotation vector on a regular cadence. Note that the maximum valid update rate is 1 kHz, based on the max update rate of the sensor's gyros.
pub fn rotation_quaternion(&self) -> Result<[f32; 4], WrapperError<SE>>
[src]
Read normalized quaternion: QX normalized quaternion – X, or Heading | range: 0.0 – 1.0 ( ±π ) QY normalized quaternion – Y, or Pitch | range: 0.0 – 1.0 ( ±π/2 ) QZ normalized quaternion – Z, or Roll | range: 0.0 – 1.0 ( ±π ) QW normalized quaternion – W, or 0.0 | range: 0.0 – 1.0
pub fn heading_accuracy(&self) -> f32
[src]
pub fn soft_reset(&mut self) -> Result<(), WrapperError<SE>>
[src]
Tell the sensor to reset.
Normally applications should not need to call this directly,
as it is called during init
.
Auto Trait Implementations
impl<SI> Send for BNO080<SI> where
SI: Send,
SI: Send,
impl<SI> Sync for BNO080<SI> where
SI: Sync,
SI: Sync,
impl<SI> Unpin for BNO080<SI> where
SI: Unpin,
SI: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,