OpenCyphal / pycyphal

Python implementation of the Cyphal protocol stack.
https://pycyphal.readthedocs.io/
MIT License
119 stars 106 forks source link

[UAVCAN/CAN]: PythonCAN media driver should choose Classic CAN if MTU=8 and bitrates are equal #184

Closed pavel-kirienko closed 2 years ago

pavel-kirienko commented 2 years ago

This heuristic should be implemented here:

https://github.com/UAVCAN/pyuavcan/blob/9da3cf579b65cae4067b16c621cc3321156f17d4/pyuavcan/transport/can/media/pythoncan/_pythoncan.py#L155

Currently, it is not possible to use pyuavcan.application.make_transport() with SLCAN because it attempts to initialize it in FD mode which expectedly fails with an error "interface does not support CAN FD".