github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/common/message_set_mode.go (about) 1 //autogenerated:yes 2 //nolint:revive,misspell,govet,lll 3 package common 4 5 // Set the system mode, as defined by enum MAV_MODE. There is no target component id as the mode is by definition for the overall aircraft, not only for one component. 6 type MessageSetMode struct { 7 // The system setting the mode 8 TargetSystem uint8 9 // The new base mode. 10 BaseMode MAV_MODE `mavenum:"uint8"` 11 // The new autopilot-specific mode. This field can be ignored by an autopilot. 12 CustomMode uint32 13 } 14 15 // GetID implements the message.Message interface. 16 func (*MessageSetMode) GetID() uint32 { 17 return 11 18 }