Struct mavlink::asluav::GIMBAL_MANAGER_SET_ATTITUDE_DATA
source · pub struct GIMBAL_MANAGER_SET_ATTITUDE_DATA {
pub flags: GimbalManagerFlags,
pub q: [f32; 4],
pub angular_velocity_x: f32,
pub angular_velocity_y: f32,
pub angular_velocity_z: f32,
pub target_system: u8,
pub target_component: u8,
pub gimbal_device_id: u8,
}
asluav
only.Expand description
id: 282 High level message to control a gimbal’s attitude. This message is to be sent to the gimbal manager (e.g. from a ground station). Angles and rates can be set to NaN according to use case..
Fields§
§flags: GimbalManagerFlags
High level gimbal manager flags to use..
q: [f32; 4]
Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation, the frame is depends on whether the flag GIMBAL_MANAGER_FLAGS_YAW_LOCK is set).
angular_velocity_x: f32
X component of angular velocity, positive is rolling to the right, NaN to be ignored..
angular_velocity_y: f32
Y component of angular velocity, positive is pitching up, NaN to be ignored..
angular_velocity_z: f32
Z component of angular velocity, positive is yawing to the right, NaN to be ignored..
target_system: u8
System ID.
target_component: u8
Component ID.
gimbal_device_id: u8
Component ID of gimbal device to address (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device components. Send command multiple times for more than one gimbal (but not all gimbals)..
Implementations§
source§impl GIMBAL_MANAGER_SET_ATTITUDE_DATA
impl GIMBAL_MANAGER_SET_ATTITUDE_DATA
pub const ENCODED_LEN: usize = 35usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for GIMBAL_MANAGER_SET_ATTITUDE_DATA
impl Clone for GIMBAL_MANAGER_SET_ATTITUDE_DATA
source§fn clone(&self) -> GIMBAL_MANAGER_SET_ATTITUDE_DATA
fn clone(&self) -> GIMBAL_MANAGER_SET_ATTITUDE_DATA
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'de> Deserialize<'de> for GIMBAL_MANAGER_SET_ATTITUDE_DATA
impl<'de> Deserialize<'de> for GIMBAL_MANAGER_SET_ATTITUDE_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 GIMBAL_MANAGER_SET_ATTITUDE_DATA
impl MessageData for GIMBAL_MANAGER_SET_ATTITUDE_DATA
const ID: u32 = 282u32
const NAME: &'static str = "GIMBAL_MANAGER_SET_ATTITUDE"
const EXTRA_CRC: u8 = 123u8
const ENCODED_LEN: usize = 35usize
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 GIMBAL_MANAGER_SET_ATTITUDE_DATA
impl PartialEq for GIMBAL_MANAGER_SET_ATTITUDE_DATA
source§fn eq(&self, other: &GIMBAL_MANAGER_SET_ATTITUDE_DATA) -> bool
fn eq(&self, other: &GIMBAL_MANAGER_SET_ATTITUDE_DATA) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for GIMBAL_MANAGER_SET_ATTITUDE_DATA
Auto Trait Implementations§
impl Freeze for GIMBAL_MANAGER_SET_ATTITUDE_DATA
impl RefUnwindSafe for GIMBAL_MANAGER_SET_ATTITUDE_DATA
impl Send for GIMBAL_MANAGER_SET_ATTITUDE_DATA
impl Sync for GIMBAL_MANAGER_SET_ATTITUDE_DATA
impl Unpin for GIMBAL_MANAGER_SET_ATTITUDE_DATA
impl UnwindSafe for GIMBAL_MANAGER_SET_ATTITUDE_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
)