Struct vl53l1::RangingMeasurementData
source · pub struct RangingMeasurementData {
pub stream_count: u8,
pub signal_rate_rtn_mega_cps: FixPoint1616,
pub ambient_rate_rtn_mega_cps: FixPoint1616,
pub effective_spad_rtn_count: u16,
pub sigma_milli_meter: FixPoint1616,
pub range_milli_meter: i16,
pub range_status: RangeStatus,
/* private fields */
}
Expand description
Single range measurement data.
Fields§
§stream_count: u8
8-bit Stream Count.
signal_rate_rtn_mega_cps: FixPoint1616
Return signal rate (MCPS)\n these is a 16.16 fix point value, which is effectively a measure of target reflectance.
ambient_rate_rtn_mega_cps: FixPoint1616
Return ambient rate (MCPS)\n these is a 16.16 fix point value, which is effectively a measure of the ambien t light.
effective_spad_rtn_count: u16
Return the effective SPAD count for the return signal.
To obtain Real value it should be divided by 256.
sigma_milli_meter: FixPoint1616
Return the Sigma value in millimeter.
range_milli_meter: i16
Range distance in millimeter.
This should be between RangeMinMilliMeter and RangeMaxMilliMeter
range_status: RangeStatus
Range Status for the current measurement.
This is device dependent.
Value = 0 means value is valid.
Implementations§
source§impl RangingMeasurementData
impl RangingMeasurementData
sourcepub fn signal_rate_rtn_mega_cps_real(&self) -> f32
pub fn signal_rate_rtn_mega_cps_real(&self) -> f32
The signal rate in “mega count per second” (MCPS) as a Real value.
sourcepub fn ambient_rate_rtn_mega_cps_real(&self) -> f32
pub fn ambient_rate_rtn_mega_cps_real(&self) -> f32
The return ambient rate as a Real value.
sourcepub fn sigma_milli_meter_real(&self) -> f32
pub fn sigma_milli_meter_real(&self) -> f32
Estimation of the standard deviation of the current ranging in mm as a Real value.
Trait Implementations§
source§impl Clone for RangingMeasurementData
impl Clone for RangingMeasurementData
source§fn clone(&self) -> RangingMeasurementData
fn clone(&self) -> RangingMeasurementData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more