libs/kaptan-drivers: add LIDAR-Lite v3 state machine
This commit is contained in:
1 parent
0cef9f67f3
commit
4065aed961
4 files changed
+825
No files matched your search
@@ -0,0 +1,29 @@
|
||||
//! LIDAR-Lite v3 operation errors.
|
||||
|
||||
/// LIDAR-Lite v3 operation failure.
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
pub enum Error<BusError> {
|
||||
/// The selected I²C route rejected a transaction submission.
|
||||
Start(BusError),
|
||||
/// An acquisition request arrived while another measurement was active.
|
||||
NotReady,
|
||||
/// The selected I²C route reported a terminal transaction fault.
|
||||
TransferFault,
|
||||
/// The device reported a process error for the completed measurement.
|
||||
ProcessError,
|
||||
/// The device reported that its reference or receiver bias is unhealthy.
|
||||
Unhealthy,
|
||||
/// The device reported that no usable signal peak was detected.
|
||||
InvalidSignal,
|
||||
/// A measurement remained busy beyond the driver's bounded acquisition interval.
|
||||
MeasurementTimeout,
|
||||
/// The device reported a documented no-signal sentinel distance of zero or one centimetre.
|
||||
NoSignal,
|
||||
}
|
||||
|
||||
/// LIDAR-Lite v3 startup lifecycle failure.
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
pub enum StartupError {
|
||||
/// Startup completion was reported when the driver was not settling.
|
||||
NotSettling,
|
||||
}
|
||||
Reference in new issue
Block a user