Struct mavlink::ardupilotmega::LANDING_TARGET_DATA
source · pub struct LANDING_TARGET_DATA {}
ardupilotmega
only.Expand description
id: 149 The location of a landing target. See: https://mavlink.io/en/services/landing_target.html.
Fields§
§time_usec: u64
Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number..
angle_x: f32
X-axis angular offset of the target from the center of the image.
angle_y: f32
Y-axis angular offset of the target from the center of the image.
distance: f32
Distance to the target from the vehicle.
size_x: f32
Size of target along x-axis.
size_y: f32
Size of target along y-axis.
target_num: u8
The ID of the target if multiple targets are present.
frame: MavFrame
Coordinate frame used for following fields..
x: f32
X Position of the landing target in MAV_FRAME.
y: f32
Y Position of the landing target in MAV_FRAME.
z: f32
Z Position of the landing target in MAV_FRAME.
q: [f32; 4]
Quaternion of landing target orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0).
mavtype: LandingTargetType
Type of landing target.
position_valid: u8
Boolean indicating whether the position fields (x, y, z, q, type) contain valid target position information (valid: 1, invalid: 0). Default is 0 (invalid)..
Implementations§
source§impl LANDING_TARGET_DATA
impl LANDING_TARGET_DATA
pub const ENCODED_LEN: usize = 60usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for LANDING_TARGET_DATA
impl Clone for LANDING_TARGET_DATA
source§fn clone(&self) -> LANDING_TARGET_DATA
fn clone(&self) -> LANDING_TARGET_DATA
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LANDING_TARGET_DATA
impl Debug for LANDING_TARGET_DATA
source§impl Default for LANDING_TARGET_DATA
impl Default for LANDING_TARGET_DATA
source§impl<'de> Deserialize<'de> for LANDING_TARGET_DATA
impl<'de> Deserialize<'de> for LANDING_TARGET_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>,
source§impl MessageData for LANDING_TARGET_DATA
impl MessageData for LANDING_TARGET_DATA
const ID: u32 = 149u32
const NAME: &'static str = "LANDING_TARGET"
const EXTRA_CRC: u8 = 200u8
const ENCODED_LEN: usize = 60usize
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 LANDING_TARGET_DATA
impl PartialEq for LANDING_TARGET_DATA
source§impl Serialize for LANDING_TARGET_DATA
impl Serialize for LANDING_TARGET_DATA
impl StructuralPartialEq for LANDING_TARGET_DATA
Auto Trait Implementations§
impl Freeze for LANDING_TARGET_DATA
impl RefUnwindSafe for LANDING_TARGET_DATA
impl Send for LANDING_TARGET_DATA
impl Sync for LANDING_TARGET_DATA
impl Unpin for LANDING_TARGET_DATA
impl UnwindSafe for LANDING_TARGET_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
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)
clone_to_uninit
)