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 more