SetAttitudeTarget

Type Alias SetAttitudeTarget 

Source
pub type SetAttitudeTarget = SetAttitudeTarget;
Expand description

Aliased Type§

pub struct SetAttitudeTarget {
    pub time_boot_ms: u32,
    pub target_system: u8,
    pub target_component: u8,
    pub type_mask: AttitudeTargetTypemask,
    pub q: [f32; 4],
    pub body_roll_rate: f32,
    pub body_pitch_rate: f32,
    pub body_yaw_rate: f32,
    pub thrust: f32,
    pub thrust_body: [f32; 3],
}

Fields§

§time_boot_ms: u32

MAVLink field time_boot_ms.

Timestamp (time since system boot).

§target_system: u8

MAVLink field target_system.

System ID

§target_component: u8

MAVLink field target_component.

Component ID

§type_mask: AttitudeTargetTypemask

MAVLink field type_mask.

Bitmap to indicate which dimensions should be ignored by the vehicle.

§q: [f32; 4]

MAVLink field q.

Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0) from MAV_FRAME_LOCAL_NED to MAV_FRAME_BODY_FRD

§body_roll_rate: f32

MAVLink field body_roll_rate.

Body roll rate

§body_pitch_rate: f32

MAVLink field body_pitch_rate.

Body pitch rate

§body_yaw_rate: f32

MAVLink field body_yaw_rate.

Body yaw rate

§thrust: f32

MAVLink field thrust.

Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust)

§thrust_body: [f32; 3]

MAVLink field thrust_body.

3D thrust setpoint in the body NED frame, normalized to -1 .. 1