Struct mavlink::matrixpilot::SAFETY_ALLOWED_AREA_DATA
source · pub struct SAFETY_ALLOWED_AREA_DATA {
pub p1x: f32,
pub p1y: f32,
pub p1z: f32,
pub p2x: f32,
pub p2y: f32,
pub p2z: f32,
pub frame: MavFrame,
}
Available on crate feature
matrixpilot
only.Expand description
id: 55 Read out the safety zone the MAV currently assumes..
Fields§
§p1x: f32
x position 1 / Latitude 1.
p1y: f32
y position 1 / Longitude 1.
p1z: f32
z position 1 / Altitude 1.
p2x: f32
x position 2 / Latitude 2.
p2y: f32
y position 2 / Longitude 2.
p2z: f32
z position 2 / Altitude 2.
frame: MavFrame
Coordinate frame. Can be either global, GPS, right-handed with Z axis up or local, right handed, Z axis down..
Implementations§
source§impl SAFETY_ALLOWED_AREA_DATA
impl SAFETY_ALLOWED_AREA_DATA
pub const ENCODED_LEN: usize = 25usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for SAFETY_ALLOWED_AREA_DATA
impl Clone for SAFETY_ALLOWED_AREA_DATA
source§fn clone(&self) -> SAFETY_ALLOWED_AREA_DATA
fn clone(&self) -> SAFETY_ALLOWED_AREA_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 SAFETY_ALLOWED_AREA_DATA
impl Debug for SAFETY_ALLOWED_AREA_DATA
source§impl Default for SAFETY_ALLOWED_AREA_DATA
impl Default for SAFETY_ALLOWED_AREA_DATA
source§impl<'de> Deserialize<'de> for SAFETY_ALLOWED_AREA_DATA
impl<'de> Deserialize<'de> for SAFETY_ALLOWED_AREA_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 SAFETY_ALLOWED_AREA_DATA
impl MessageData for SAFETY_ALLOWED_AREA_DATA
const ID: u32 = 55u32
const NAME: &'static str = "SAFETY_ALLOWED_AREA"
const EXTRA_CRC: u8 = 3u8
const ENCODED_LEN: usize = 25usize
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 SAFETY_ALLOWED_AREA_DATA
impl PartialEq for SAFETY_ALLOWED_AREA_DATA
source§impl Serialize for SAFETY_ALLOWED_AREA_DATA
impl Serialize for SAFETY_ALLOWED_AREA_DATA
impl StructuralPartialEq for SAFETY_ALLOWED_AREA_DATA
Auto Trait Implementations§
impl Freeze for SAFETY_ALLOWED_AREA_DATA
impl RefUnwindSafe for SAFETY_ALLOWED_AREA_DATA
impl Send for SAFETY_ALLOWED_AREA_DATA
impl Sync for SAFETY_ALLOWED_AREA_DATA
impl Unpin for SAFETY_ALLOWED_AREA_DATA
impl UnwindSafe for SAFETY_ALLOWED_AREA_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
)