github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/pythonarraytest/message_gimbal_device_set_attitude.go (about) 1 //autogenerated:yes 2 //nolint:revive,misspell,govet,lll 3 package pythonarraytest 4 5 import ( 6 "github.com/bluenviron/gomavlib/v2/pkg/dialects/common" 7 ) 8 9 // Low level message to control a gimbal device's attitude. 10 // This message is to be sent from the gimbal manager to the gimbal device component. 11 // The quaternion and angular velocities can be set to NaN according to use case. 12 // For the angles encoded in the quaternion and the angular velocities holds: 13 // If the flag GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME is set, then they are relative to the vehicle heading (vehicle frame). 14 // If the flag GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is set, then they are relative to absolute North (earth frame). 15 // If neither of these flags are set, then (for backwards compatibility) it holds: 16 // If the flag GIMBAL_DEVICE_FLAGS_YAW_LOCK is set, then they are relative to absolute North (earth frame), 17 // else they are relative to the vehicle heading (vehicle frame). 18 // Setting both GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME and GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is not allowed. 19 // These rules are to ensure backwards compatibility. 20 // New implementations should always set either GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME or GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME. 21 type MessageGimbalDeviceSetAttitude = common.MessageGimbalDeviceSetAttitude