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

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll
     3  package common
     4  
     5  // ESC information for lower rate streaming. Recommended streaming rate 1Hz. See ESC_STATUS for higher-rate ESC data.
     6  type MessageEscInfo struct {
     7  	// Index of the first ESC in this message. minValue = 0, maxValue = 60, increment = 4.
     8  	Index uint8
     9  	// Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
    10  	TimeUsec uint64
    11  	// Counter of data packets received.
    12  	Counter uint16
    13  	// Total number of ESCs in all messages of this type. Message fields with an index higher than this should be ignored because they contain invalid data.
    14  	Count uint8
    15  	// Connection type protocol for all ESC.
    16  	ConnectionType ESC_CONNECTION_TYPE `mavenum:"uint8"`
    17  	// Information regarding online/offline status of each ESC.
    18  	Info uint8
    19  	// Bitmap of ESC failure flags.
    20  	FailureFlags [4]ESC_FAILURE_FLAGS `mavenum:"uint16"`
    21  	// Number of reported errors by each ESC since boot.
    22  	ErrorCount [4]uint32
    23  	// Temperature of each ESC. INT16_MAX: if data not supplied by ESC.
    24  	Temperature [4]int16
    25  }
    26  
    27  // GetID implements the message.Message interface.
    28  func (*MessageEscInfo) GetID() uint32 {
    29  	return 290
    30  }