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

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll
     3  package development
     4  
     5  // Get information about a particular flight modes.
     6  // The message can be enumerated or requested for a particular mode using MAV_CMD_REQUEST_MESSAGE.
     7  // Specify 0 in param2 to request that the message is emitted for all available modes or the specific index for just one mode.
     8  // The modes must be available/settable for the current vehicle/frame type.
     9  // Each modes should only be emitted once (even if it is both standard and custom).
    10  type MessageAvailableModes struct {
    11  	// The total number of available modes for the current vehicle type.
    12  	NumberModes uint8
    13  	// The current mode index within number_modes, indexed from 1.
    14  	ModeIndex uint8
    15  	// Standard mode.
    16  	StandardMode MAV_STANDARD_MODE `mavenum:"uint8"`
    17  	// A bitfield for use for autopilot-specific flags
    18  	CustomMode uint32
    19  	// Mode properties.
    20  	Properties MAV_MODE_PROPERTY `mavenum:"uint32"`
    21  	// Name of custom mode, with null termination character. Should be omitted for standard modes.
    22  	ModeName string `mavlen:"35"`
    23  }
    24  
    25  // GetID implements the message.Message interface.
    26  func (*MessageAvailableModes) GetID() uint32 {
    27  	return 435
    28  }