github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/development/message_current_mode.go (about) 1 //autogenerated:yes 2 //nolint:revive,misspell,govet,lll 3 package development 4 5 // Get the current mode. 6 // This should be emitted on any mode change, and broadcast at low rate (nominally 0.5 Hz). 7 // It may be requested using MAV_CMD_REQUEST_MESSAGE. 8 type MessageCurrentMode struct { 9 // Standard mode. 10 StandardMode MAV_STANDARD_MODE `mavenum:"uint8"` 11 // A bitfield for use for autopilot-specific flags 12 CustomMode uint32 13 // The custom_mode of the mode that was last commanded by the user (for example, with MAV_CMD_DO_SET_STANDARD_MODE, MAV_CMD_DO_SET_MODE or via RC). This should usually be the same as custom_mode. It will be different if the vehicle is unable to enter the intended mode, or has left that mode due to a failsafe condition. 0 indicates the intended custom mode is unknown/not supplied 14 IntendedCustomMode uint32 15 } 16 17 // GetID implements the message.Message interface. 18 func (*MessageCurrentMode) GetID() uint32 { 19 return 436 20 }