Struct mavlink::development::TARGET_RELATIVE_DATA
source · pub struct TARGET_RELATIVE_DATA {
pub timestamp: u64,
pub x: f32,
pub y: f32,
pub z: f32,
pub pos_std: [f32; 3],
pub yaw_std: f32,
pub q_target: [f32; 4],
pub q_sensor: [f32; 4],
pub id: u8,
pub frame: TargetObsFrame,
pub mavtype: LandingTargetType,
}
development
only.Expand description
id: 511 The location of a target measured by MAV’s onboard sensors..
Fields§
§timestamp: u64
Timestamp (UNIX epoch time).
x: f32
X Position of the target in TARGET_OBS_FRAME.
y: f32
Y Position of the target in TARGET_OBS_FRAME.
z: f32
Z Position of the target in TARGET_OBS_FRAME.
pos_std: [f32; 3]
Standard deviation of the target’s position in TARGET_OBS_FRAME.
yaw_std: f32
Standard deviation of the target’s orientation in TARGET_OBS_FRAME.
q_target: [f32; 4]
Quaternion of the target’s orientation from the target’s frame to the TARGET_OBS_FRAME (w, x, y, z order, zero-rotation is 1, 0, 0, 0).
q_sensor: [f32; 4]
Quaternion of the sensor’s orientation from TARGET_OBS_FRAME to vehicle-carried NED. (Ignored if set to (0,0,0,0)) (w, x, y, z order, zero-rotation is 1, 0, 0, 0).
id: u8
The ID of the target if multiple targets are present.
frame: TargetObsFrame
Coordinate frame used for following fields..
mavtype: LandingTargetType
Type of target.
Implementations§
source§impl TARGET_RELATIVE_DATA
impl TARGET_RELATIVE_DATA
pub const ENCODED_LEN: usize = 71usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for TARGET_RELATIVE_DATA
impl Clone for TARGET_RELATIVE_DATA
source§fn clone(&self) -> TARGET_RELATIVE_DATA
fn clone(&self) -> TARGET_RELATIVE_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 TARGET_RELATIVE_DATA
impl Debug for TARGET_RELATIVE_DATA
source§impl Default for TARGET_RELATIVE_DATA
impl Default for TARGET_RELATIVE_DATA
source§impl<'de> Deserialize<'de> for TARGET_RELATIVE_DATA
impl<'de> Deserialize<'de> for TARGET_RELATIVE_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 TARGET_RELATIVE_DATA
impl MessageData for TARGET_RELATIVE_DATA
const ID: u32 = 511u32
const NAME: &'static str = "TARGET_RELATIVE"
const EXTRA_CRC: u8 = 28u8
const ENCODED_LEN: usize = 71usize
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 TARGET_RELATIVE_DATA
impl PartialEq for TARGET_RELATIVE_DATA
source§impl Serialize for TARGET_RELATIVE_DATA
impl Serialize for TARGET_RELATIVE_DATA
impl StructuralPartialEq for TARGET_RELATIVE_DATA
Auto Trait Implementations§
impl Freeze for TARGET_RELATIVE_DATA
impl RefUnwindSafe for TARGET_RELATIVE_DATA
impl Send for TARGET_RELATIVE_DATA
impl Sync for TARGET_RELATIVE_DATA
impl Unpin for TARGET_RELATIVE_DATA
impl UnwindSafe for TARGET_RELATIVE_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
)