CanFilterModify class

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.

CAN_FILTER_MODIFY

Implemented types

Constructors

CanFilterModify({required List<int16_t> ids, required uint8_t targetSystem, required uint8_t targetComponent, required uint8_t bus, required CanFilterOp operation, required uint8_t numIds})
CanFilterModify.parse(ByteData data_)
factory

Properties

bus uint8_t
bus number
final
hashCode int
The hash code for this object.
no setterinherited
ids List<int16_t>
filter IDs, length num_ids
final
mavlinkCrcExtra int
no setteroverride
mavlinkMessageId int
no setteroverride
numIds uint8_t
number of IDs in filter list
final
operation CanFilterOp
what operation to perform on the filter list. See CAN_FILTER_OP enum.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetComponent uint8_t
Component ID.
final
targetSystem uint8_t
System ID.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() ByteData
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

mavlinkEncodedLength → const int