TargetRelative

Type Alias TargetRelative 

Source
pub type TargetRelative = TargetRelative;
Expand description

Aliased Type§

pub struct TargetRelative {
    pub timestamp: u64,
    pub id: u8,
    pub frame: TargetObsFrame,
    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 type_: LandingTargetType,
}

Fields§

§timestamp: u64

MAVLink field timestamp.

Timestamp (UNIX epoch time)

§id: u8

MAVLink field id.

The ID of the target if multiple targets are present

§frame: TargetObsFrame

MAVLink field frame.

Coordinate frame used for following fields.

§x: f32

MAVLink field x.

X Position of the target in TARGET_OBS_FRAME

§y: f32

MAVLink field y.

Y Position of the target in TARGET_OBS_FRAME

§z: f32

MAVLink field z.

Z Position of the target in TARGET_OBS_FRAME

§pos_std: [f32; 3]

MAVLink field pos_std.

Standard deviation of the target’s position in TARGET_OBS_FRAME

§yaw_std: f32

MAVLink field yaw_std.

Standard deviation of the target’s orientation in TARGET_OBS_FRAME

§q_target: [f32; 4]

MAVLink field q_target.

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]

MAVLink field q_sensor.

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)

§type_: LandingTargetType

MAVLink field type.

Type of target