Struct bluerobotics_ping::ping1d::DistanceStruct
source · pub struct DistanceStruct {
pub distance: u32,
pub confidence: u16,
pub transmit_duration: u16,
pub ping_number: u32,
pub scan_start: u32,
pub scan_length: u32,
pub gain_setting: u32,
}Expand description
The distance to target with confidence estimate. Relevant device parameters during the measurement are also provided.
Fields§
§distance: u32The current return distance determined for the most recent acoustic measurement.
confidence: u16Confidence in the most recent range measurement.
transmit_duration: u16The acoustic pulse length during acoustic transmission/activation.
ping_number: u32The pulse/measurement count since boot.
scan_start: u32The beginning of the scan region in mm from the transducer.
scan_length: u32The length of the scan region.
gain_setting: u32The current gain setting. 0: 0.6, 1: 1.8, 2: 5.5, 3: 12.9, 4: 30.2, 5: 66.1, 6: 144
Trait Implementations§
source§impl Clone for DistanceStruct
impl Clone for DistanceStruct
source§fn clone(&self) -> DistanceStruct
fn clone(&self) -> DistanceStruct
Returns a copy 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 DistanceStruct
impl Debug for DistanceStruct
source§impl Default for DistanceStruct
impl Default for DistanceStruct
source§fn default() -> DistanceStruct
fn default() -> DistanceStruct
Returns the “default value” for a type. Read more
source§impl DeserializePayload for DistanceStruct
impl DeserializePayload for DistanceStruct
fn deserialize(payload: &[u8]) -> Self
source§impl PartialEq for DistanceStruct
impl PartialEq for DistanceStruct
source§fn eq(&self, other: &DistanceStruct) -> bool
fn eq(&self, other: &DistanceStruct) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl SerializePayload for DistanceStruct
impl SerializePayload for DistanceStruct
impl StructuralPartialEq for DistanceStruct
Auto Trait Implementations§
impl Freeze for DistanceStruct
impl RefUnwindSafe for DistanceStruct
impl Send for DistanceStruct
impl Sync for DistanceStruct
impl Unpin for DistanceStruct
impl UnwindSafe for DistanceStruct
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