github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/storm32/message_storm32_gimbal_manager_control.go (about) 1 //autogenerated:yes 2 //nolint:revive,misspell,govet,lll 3 package storm32 4 5 // Message to a gimbal manager to control the gimbal attitude. Angles and rates can be set to NaN according to use case. A gimbal device is never to react to this message. 6 type MessageStorm32GimbalManagerControl struct { 7 // System ID 8 TargetSystem uint8 9 // Component ID 10 TargetComponent uint8 11 // Gimbal ID of the gimbal manager to address (component ID or 1-6 for non-MAVLink gimbal, 0 for all gimbals). Send command multiple times for more than one but not all gimbals. 12 GimbalId uint8 13 // Client which is contacting the gimbal manager (must be set). 14 Client MAV_STORM32_GIMBAL_MANAGER_CLIENT `mavenum:"uint8"` 15 // Gimbal device flags to be applied (UINT16_MAX to be ignored). Same flags as used in GIMBAL_DEVICE_SET_ATTITUDE. 16 DeviceFlags GIMBAL_DEVICE_FLAGS `mavenum:"uint16"` 17 // Gimbal manager flags to be applied (0 to be ignored). 18 ManagerFlags MAV_STORM32_GIMBAL_MANAGER_FLAGS `mavenum:"uint16"` 19 // Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation). Set first element to NaN to be ignored. The frame is determined by the GIMBAL_DEVICE_FLAGS_YAW_IN_xxx_FRAME flags. 20 Q [4]float32 21 // X component of angular velocity (positive: roll to the right). NaN to be ignored. 22 AngularVelocityX float32 23 // Y component of angular velocity (positive: tilt up). NaN to be ignored. 24 AngularVelocityY float32 25 // Z component of angular velocity (positive: pan to the right). NaN to be ignored. The frame is determined by the GIMBAL_DEVICE_FLAGS_YAW_IN_xxx_FRAME flags. 26 AngularVelocityZ float32 27 } 28 29 // GetID implements the message.Message interface. 30 func (*MessageStorm32GimbalManagerControl) GetID() uint32 { 31 return 60012 32 }