Struct mavlink::common::SAFETY_SET_ALLOWED_AREA_DATA
source · pub struct SAFETY_SET_ALLOWED_AREA_DATA {
pub p1x: f32,
pub p1y: f32,
pub p1z: f32,
pub p2x: f32,
pub p2y: f32,
pub p2z: f32,
pub target_system: u8,
pub target_component: u8,
pub frame: MavFrame,
}
Available on crate feature
common
only.Expand description
id: 54 Set a safety zone (volume), which is defined by two corners of a cube. This message can be used to tell the MAV which setpoints/waypoints to accept and which to reject. Safety areas are often enforced by national or competition regulations..
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.
target_system: u8
System ID.
target_component: u8
Component ID.
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_SET_ALLOWED_AREA_DATA
impl SAFETY_SET_ALLOWED_AREA_DATA
pub const ENCODED_LEN: usize = 27usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for SAFETY_SET_ALLOWED_AREA_DATA
impl Clone for SAFETY_SET_ALLOWED_AREA_DATA
source§fn clone(&self) -> SAFETY_SET_ALLOWED_AREA_DATA
fn clone(&self) -> SAFETY_SET_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_SET_ALLOWED_AREA_DATA
impl Debug for SAFETY_SET_ALLOWED_AREA_DATA
source§impl<'de> Deserialize<'de> for SAFETY_SET_ALLOWED_AREA_DATA
impl<'de> Deserialize<'de> for SAFETY_SET_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_SET_ALLOWED_AREA_DATA
impl MessageData for SAFETY_SET_ALLOWED_AREA_DATA
const ID: u32 = 54u32
const NAME: &'static str = "SAFETY_SET_ALLOWED_AREA"
const EXTRA_CRC: u8 = 15u8
const ENCODED_LEN: usize = 27usize
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_SET_ALLOWED_AREA_DATA
impl PartialEq for SAFETY_SET_ALLOWED_AREA_DATA
source§fn eq(&self, other: &SAFETY_SET_ALLOWED_AREA_DATA) -> bool
fn eq(&self, other: &SAFETY_SET_ALLOWED_AREA_DATA) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for SAFETY_SET_ALLOWED_AREA_DATA
Auto Trait Implementations§
impl Freeze for SAFETY_SET_ALLOWED_AREA_DATA
impl RefUnwindSafe for SAFETY_SET_ALLOWED_AREA_DATA
impl Send for SAFETY_SET_ALLOWED_AREA_DATA
impl Sync for SAFETY_SET_ALLOWED_AREA_DATA
impl Unpin for SAFETY_SET_ALLOWED_AREA_DATA
impl UnwindSafe for SAFETY_SET_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
)