github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/common/message_gimbal_device_information.go (about)

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll
     3  package common
     4  
     5  // Information about a low level gimbal. This message should be requested by the gimbal manager or a ground station using MAV_CMD_REQUEST_MESSAGE. The maximum angles and rates are the limits by hardware. However, the limits by software used are likely different/smaller and dependent on mode/settings/etc..
     6  type MessageGimbalDeviceInformation struct {
     7  	// Timestamp (time since system boot).
     8  	TimeBootMs uint32
     9  	// Name of the gimbal vendor.
    10  	VendorName string `mavlen:"32"`
    11  	// Name of the gimbal model.
    12  	ModelName string `mavlen:"32"`
    13  	// Custom name of the gimbal given to it by the user.
    14  	CustomName string `mavlen:"32"`
    15  	// Version of the gimbal firmware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff).
    16  	FirmwareVersion uint32
    17  	// Version of the gimbal hardware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff).
    18  	HardwareVersion uint32
    19  	// UID of gimbal hardware (0 if unknown).
    20  	Uid uint64
    21  	// Bitmap of gimbal capability flags.
    22  	CapFlags GIMBAL_DEVICE_CAP_FLAGS `mavenum:"uint16"`
    23  	// Bitmap for use for gimbal-specific capability flags.
    24  	CustomCapFlags uint16
    25  	// Minimum hardware roll angle (positive: rolling to the right, negative: rolling to the left). NAN if unknown.
    26  	RollMin float32
    27  	// Maximum hardware roll angle (positive: rolling to the right, negative: rolling to the left). NAN if unknown.
    28  	RollMax float32
    29  	// Minimum hardware pitch angle (positive: up, negative: down). NAN if unknown.
    30  	PitchMin float32
    31  	// Maximum hardware pitch angle (positive: up, negative: down). NAN if unknown.
    32  	PitchMax float32
    33  	// Minimum hardware yaw angle (positive: to the right, negative: to the left). NAN if unknown.
    34  	YawMin float32
    35  	// Maximum hardware yaw angle (positive: to the right, negative: to the left). NAN if unknown.
    36  	YawMax float32
    37  	// This field is to be used if the gimbal manager and the gimbal device are the same component and hence have the same component ID. This field is then set to a number between 1-6. If the component ID is separate, this field is not required and must be set to 0.
    38  	GimbalDeviceId uint8 `mavext:"true"`
    39  }
    40  
    41  // GetID implements the message.Message interface.
    42  func (*MessageGimbalDeviceInformation) GetID() uint32 {
    43  	return 283
    44  }