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

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll
     3  package common
     4  
     5  // Modify the filter of what CAN messages to forward over the mavlink. This can be used to make CAN forwarding work well on low bandwidth links. The filtering is applied on bits 8 to 24 of the CAN id (2nd and 3rd bytes) which corresponds to the DroneCAN message ID for DroneCAN. Filters with more than 16 IDs can be constructed by sending multiple CAN_FILTER_MODIFY messages.
     6  type MessageCanFilterModify struct {
     7  	// System ID.
     8  	TargetSystem uint8
     9  	// Component ID.
    10  	TargetComponent uint8
    11  	// bus number
    12  	Bus uint8
    13  	// what operation to perform on the filter list. See CAN_FILTER_OP enum.
    14  	Operation CAN_FILTER_OP `mavenum:"uint8"`
    15  	// number of IDs in filter list
    16  	NumIds uint8
    17  	// filter IDs, length num_ids
    18  	Ids [16]uint16
    19  }
    20  
    21  // GetID implements the message.Message interface.
    22  func (*MessageCanFilterModify) GetID() uint32 {
    23  	return 388
    24  }