Struct mavlink::python_array_test::COLLISION_DATA
source · pub struct COLLISION_DATA {
pub id: u32,
pub time_to_minimum_delta: f32,
pub altitude_minimum_delta: f32,
pub horizontal_minimum_delta: f32,
pub src: MavCollisionSrc,
pub action: MavCollisionAction,
pub threat_level: MavCollisionThreatLevel,
}
Available on crate feature
python_array_test
only.Expand description
id: 247 Information about a potential collision.
Fields§
§id: u32
Unique identifier, domain based on src field.
time_to_minimum_delta: f32
Estimated time until collision occurs.
altitude_minimum_delta: f32
Closest vertical distance between vehicle and object.
horizontal_minimum_delta: f32
Closest horizontal distance between vehicle and object.
src: MavCollisionSrc
Collision data source.
action: MavCollisionAction
Action that is being taken to avoid this collision.
threat_level: MavCollisionThreatLevel
How concerned the aircraft is about this collision.
Implementations§
source§impl COLLISION_DATA
impl COLLISION_DATA
pub const ENCODED_LEN: usize = 19usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for COLLISION_DATA
impl Clone for COLLISION_DATA
source§fn clone(&self) -> COLLISION_DATA
fn clone(&self) -> COLLISION_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 COLLISION_DATA
impl Debug for COLLISION_DATA
source§impl Default for COLLISION_DATA
impl Default for COLLISION_DATA
source§impl<'de> Deserialize<'de> for COLLISION_DATA
impl<'de> Deserialize<'de> for COLLISION_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 COLLISION_DATA
impl MessageData for COLLISION_DATA
const ID: u32 = 247u32
const NAME: &'static str = "COLLISION"
const EXTRA_CRC: u8 = 81u8
const ENCODED_LEN: usize = 19usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for COLLISION_DATA
impl PartialEq for COLLISION_DATA
source§impl Serialize for COLLISION_DATA
impl Serialize for COLLISION_DATA
impl StructuralPartialEq for COLLISION_DATA
Auto Trait Implementations§
impl Freeze for COLLISION_DATA
impl RefUnwindSafe for COLLISION_DATA
impl Send for COLLISION_DATA
impl Sync for COLLISION_DATA
impl Unpin for COLLISION_DATA
impl UnwindSafe for COLLISION_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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)