[−][src]Struct neato_xv11::NeatoXV11Lidar
An implementation of the Neato XV-11 LIDAR.
Fields
readings: [(i32, i32); 360]
The LIDAR readings. Each reading is represented as a (Distance, Reliability) tuple.
Implementations
impl NeatoXV11Lidar
[src]
pub fn new() -> Self
[src]
Summary
Initialize a new instance of NeatoXV11Lidar.
Example
let lidar = neato_xv11::NeatoXV11Lidar::new();
pub fn run<T: AsRef<OsStr> + ?Sized>(&mut self, port_name: &T)
[src]
Summary
Begin reading LIDAR data.
Parameters
port_name: The port name to open.
Remarks
22 byte packet format: [0xFA, 1-byte index, 2-byte speed, [2-byte flags/distance, 2-byte quality] * 4, 2-byte checksum] All multi-byte values are little endian.
Example
let mut lidar = NeatoXV11Lidar::new(); lidar.run("/dev/serial0");
Auto Trait Implementations
impl RefUnwindSafe for NeatoXV11Lidar
impl Send for NeatoXV11Lidar
impl Sync for NeatoXV11Lidar
impl Unpin for NeatoXV11Lidar
impl UnwindSafe for NeatoXV11Lidar
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>,