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

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll
     3  package minimal
     4  
     5  // The heartbeat message shows that a system or component is present and responding. The type and autopilot fields (along with the message component id), allow the receiving system to treat further messages from this system appropriately (e.g. by laying out the user interface based on the autopilot). This microservice is documented at https://mavlink.io/en/services/heartbeat.html
     6  type MessageHeartbeat struct {
     7  	// Vehicle or component type. For a flight controller component the vehicle type (quadrotor, helicopter, etc.). For other components the component type (e.g. camera, gimbal, etc.). This should be used in preference to component id for identifying the component type.
     8  	Type MAV_TYPE `mavenum:"uint8"`
     9  	// Autopilot type / class. Use MAV_AUTOPILOT_INVALID for components that are not flight controllers.
    10  	Autopilot MAV_AUTOPILOT `mavenum:"uint8"`
    11  	// System mode bitmap.
    12  	BaseMode MAV_MODE_FLAG `mavenum:"uint8"`
    13  	// A bitfield for use for autopilot-specific flags
    14  	CustomMode uint32
    15  	// System status flag.
    16  	SystemStatus MAV_STATE `mavenum:"uint8"`
    17  	// MAVLink version, not writable by user, gets added by protocol because of magic data type: uint8_t_mavlink_version
    18  	MavlinkVersion uint8
    19  }
    20  
    21  // GetID implements the message.Message interface.
    22  func (*MessageHeartbeat) GetID() uint32 {
    23  	return 0
    24  }