pub struct OBSTACLE_DISTANCE_3D_DATA {
pub time_boot_ms: u32,
pub x: f32,
pub y: f32,
pub z: f32,
pub min_distance: f32,
pub max_distance: f32,
pub obstacle_id: u16,
pub sensor_type: MavDistanceSensor,
pub frame: MavFrame,
}
Available on crate feature
ardupilotmega
only.Expand description
id: 11037 Obstacle located as a 3D vector..
Fields§
§time_boot_ms: u32
Timestamp (time since system boot)..
x: f32
X position of the obstacle..
y: f32
Y position of the obstacle..
z: f32
Z position of the obstacle..
min_distance: f32
Minimum distance the sensor can measure..
max_distance: f32
Maximum distance the sensor can measure..
obstacle_id: u16
Unique ID given to each obstacle so that its movement can be tracked. Use UINT16_MAX if object ID is unknown or cannot be determined..
sensor_type: MavDistanceSensor
Class id of the distance sensor type..
frame: MavFrame
Coordinate frame of reference..
Implementations§
Source§impl OBSTACLE_DISTANCE_3D_DATA
impl OBSTACLE_DISTANCE_3D_DATA
pub const ENCODED_LEN: usize = 28usize
pub const DEFAULT: Self
Trait Implementations§
Source§impl Clone for OBSTACLE_DISTANCE_3D_DATA
impl Clone for OBSTACLE_DISTANCE_3D_DATA
Source§fn clone(&self) -> OBSTACLE_DISTANCE_3D_DATA
fn clone(&self) -> OBSTACLE_DISTANCE_3D_DATA
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 OBSTACLE_DISTANCE_3D_DATA
impl Debug for OBSTACLE_DISTANCE_3D_DATA
Source§impl Default for OBSTACLE_DISTANCE_3D_DATA
impl Default for OBSTACLE_DISTANCE_3D_DATA
Source§impl<'de> Deserialize<'de> for OBSTACLE_DISTANCE_3D_DATA
impl<'de> Deserialize<'de> for OBSTACLE_DISTANCE_3D_DATA
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MessageData for OBSTACLE_DISTANCE_3D_DATA
impl MessageData for OBSTACLE_DISTANCE_3D_DATA
const ID: u32 = 11_037u32
const NAME: &'static str = "OBSTACLE_DISTANCE_3D"
const EXTRA_CRC: u8 = 130u8
const ENCODED_LEN: usize = 28usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
impl StructuralPartialEq for OBSTACLE_DISTANCE_3D_DATA
Auto Trait Implementations§
impl Freeze for OBSTACLE_DISTANCE_3D_DATA
impl RefUnwindSafe for OBSTACLE_DISTANCE_3D_DATA
impl Send for OBSTACLE_DISTANCE_3D_DATA
impl Sync for OBSTACLE_DISTANCE_3D_DATA
impl Unpin for OBSTACLE_DISTANCE_3D_DATA
impl UnwindSafe for OBSTACLE_DISTANCE_3D_DATA
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