pub struct HomePosition {
pub latitude: i32,
pub longitude: i32,
pub altitude: i32,
pub x: f32,
pub y: f32,
pub z: f32,
pub q: [f32; 4],
pub approach_x: f32,
pub approach_y: f32,
pub approach_z: f32,
}Expand description
HOME_POSITION: the vehicle’s home location and the approach vector to it.
Fields§
§latitude: i32§longitude: i32§altitude: i32§x: f32§y: f32§z: f32§q: [f32; 4]§approach_x: f32§approach_y: f32§approach_z: f32Implementations§
Trait Implementations§
Source§impl Clone for HomePosition
impl Clone for HomePosition
Source§fn clone(&self) -> HomePosition
fn clone(&self) -> HomePosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HomePosition
Source§impl Debug for HomePosition
impl Debug for HomePosition
Source§impl Default for HomePosition
impl Default for HomePosition
Source§impl Message for HomePosition
impl Message for HomePosition
Source§const NAME: &'static str = "HOME_POSITION"
const NAME: &'static str = "HOME_POSITION"
The message name, such as
"HEARTBEAT", as used to derive CRC_EXTRA.Source§const CRC_EXTRA: u8 = 104
const CRC_EXTRA: u8 = 104
The
CRC_EXTRA seed folded into the checksum of a frame carrying this message.Source§const BASE_FIELDS: &'static [(&'static str, &'static str, u8)]
const BASE_FIELDS: &'static [(&'static str, &'static str, u8)]
The base fields in wire order as
(type, name, array_len), the input from which
CRC_EXTRA is derived and against which it is verified.Source§const DESCRIPTOR: &'static MessageDescriptor<'static>
const DESCRIPTOR: &'static MessageDescriptor<'static>
The message’s shape as data: the runtime counterpart of this type’s fields, for a
caller reading and writing by name rather than through the struct.
Source§impl PartialEq for HomePosition
impl PartialEq for HomePosition
Source§fn eq(&self, other: &HomePosition) -> bool
fn eq(&self, other: &HomePosition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HomePosition
Auto Trait Implementations§
impl Freeze for HomePosition
impl RefUnwindSafe for HomePosition
impl Send for HomePosition
impl Sync for HomePosition
impl Unpin for HomePosition
impl UnsafeUnpin for HomePosition
impl UnwindSafe for HomePosition
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