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

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll
     3  package common
     4  
     5  // Data for filling the OpenDroneID Authentication message. The Authentication Message defines a field that can provide a means of authenticity for the identity of the UAS (Unmanned Aircraft System). The Authentication message can have two different formats. For data page 0, the fields PageCount, Length and TimeStamp are present and AuthData is only 17 bytes. For data page 1 through 15, PageCount, Length and TimeStamp are not present and the size of AuthData is 23 bytes.
     6  type MessageOpenDroneIdAuthentication struct {
     7  	// System ID (0 for broadcast).
     8  	TargetSystem uint8
     9  	// Component ID (0 for broadcast).
    10  	TargetComponent uint8
    11  	// Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html.
    12  	IdOrMac [20]uint8
    13  	// Indicates the type of authentication.
    14  	AuthenticationType MAV_ODID_AUTH_TYPE `mavenum:"uint8"`
    15  	// Allowed range is 0 - 15.
    16  	DataPage uint8
    17  	// This field is only present for page 0. Allowed range is 0 - 15. See the description of struct ODID_Auth_data at https://github.com/opendroneid/opendroneid-core-c/blob/master/libopendroneid/opendroneid.h.
    18  	LastPageIndex uint8
    19  	// This field is only present for page 0. Total bytes of authentication_data from all data pages. See the description of struct ODID_Auth_data at https://github.com/opendroneid/opendroneid-core-c/blob/master/libopendroneid/opendroneid.h.
    20  	Length uint8
    21  	// This field is only present for page 0. 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019.
    22  	Timestamp uint32
    23  	// Opaque authentication data. For page 0, the size is only 17 bytes. For other pages, the size is 23 bytes. Shall be filled with nulls in the unused portion of the field.
    24  	AuthenticationData [23]uint8
    25  }
    26  
    27  // GetID implements the message.Message interface.
    28  func (*MessageOpenDroneIdAuthentication) GetID() uint32 {
    29  	return 12902
    30  }