pub enum RangingMode {
Continuous = 0,
Trigger = 1,
}
Expand description
Ranging modes of the device.
Variants§
Continuous = 0
In Continuous ranging mode, the TF-Luna will keep tracking the distance at a 500hz frequency, but as the configured output framerate (frequency) is lower (defaults to 100Hz), the output will be the average.
Trigger = 1
In trigger ranging mode, the TF-Luna stops measuring on its own and will only measure distance when explicitly triggered.
Trait Implementations§
Source§impl Clone for RangingMode
impl Clone for RangingMode
Source§fn clone(&self) -> RangingMode
fn clone(&self) -> RangingMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RangingMode
impl Debug for RangingMode
Source§impl Format for RangingMode
impl Format for RangingMode
Source§impl PartialEq for RangingMode
impl PartialEq for RangingMode
impl Copy for RangingMode
impl StructuralPartialEq for RangingMode
Auto Trait Implementations§
impl Freeze for RangingMode
impl RefUnwindSafe for RangingMode
impl Send for RangingMode
impl Sync for RangingMode
impl Unpin for RangingMode
impl UnwindSafe for RangingMode
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
Mutably borrows from an owned value. Read more