github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/common/message_gimbal_manager_set_attitude.go (about) 1 //autogenerated:yes 2 //nolint:revive,misspell,govet,lll 3 package common 4 5 // 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. 6 type MessageGimbalManagerSetAttitude struct { 7 // System ID 8 TargetSystem uint8 9 // Component ID 10 TargetComponent uint8 11 // High level gimbal manager flags to use. 12 Flags GIMBAL_MANAGER_FLAGS `mavenum:"uint32"` 13 // 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). 14 GimbalDeviceId uint8 15 // 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) 16 Q [4]float32 17 // X component of angular velocity, positive is rolling to the right, NaN to be ignored. 18 AngularVelocityX float32 19 // Y component of angular velocity, positive is pitching up, NaN to be ignored. 20 AngularVelocityY float32 21 // Z component of angular velocity, positive is yawing to the right, NaN to be ignored. 22 AngularVelocityZ float32 23 } 24 25 // GetID implements the message.Message interface. 26 func (*MessageGimbalManagerSetAttitude) GetID() uint32 { 27 return 282 28 }