pub struct NeighborFix {
pub slot: u8,
pub lat_deg: f64,
pub lon_deg: f64,
pub alt_m: f64,
pub vn: f64,
pub ve: f64,
pub vd: f64,
pub status: u8,
pub sender_order: Ordering,
}Expand description
A neighbour straight off the table: geodetic, already dead-reckoned forward to
now by the caller.
Fields§
§slot: u8The neighbour’s fleet slot.
lat_deg: f64Latitude, degrees.
lon_deg: f64Longitude, degrees.
alt_m: f64Altitude, metres.
vn: f64Velocity north, metres/second.
ve: f64Velocity east, metres/second.
vd: f64Down-positive, MAVLink convention: a climbing neighbour is negative.
status: u8The beacon status byte verbatim (see crate::status).
sender_order: OrderingThis drone’s bus sender id compared with the neighbour’s
(own.cmp(&neighbour)), Equal when either is unknown. Breaks the hard
override’s tie when two drones share a slot.
Trait Implementations§
Source§impl Clone for NeighborFix
impl Clone for NeighborFix
impl Copy for NeighborFix
Source§impl Debug for NeighborFix
impl Debug for NeighborFix
Source§impl PartialEq for NeighborFix
impl PartialEq for NeighborFix
impl StructuralPartialEq for NeighborFix
Auto Trait Implementations§
impl Freeze for NeighborFix
impl RefUnwindSafe for NeighborFix
impl Send for NeighborFix
impl Sync for NeighborFix
impl Unpin for NeighborFix
impl UnsafeUnpin for NeighborFix
impl UnwindSafe for NeighborFix
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