Skip to content

Commit

Permalink
Add PCAN support through python-can
Browse files Browse the repository at this point in the history
  • Loading branch information
PetervdPerk-NXP authored and tridge committed Feb 9, 2023
1 parent 2a2ec63 commit b27d913
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dronecan_gui_tool/setup_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ def list_ifaces():
for x in mifaces:
out[x] = x

try:
from can import detect_available_configs
for interface in detect_available_configs():
if interface['interface'] == "pcan":
out[interface['channel']] = interface['channel']
except Exception as ex:
logger.warning('Could not load can interfaces: %s', ex, exc_info=True)

return out


Expand Down
1 change: 1 addition & 0 deletions winbuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ python --version
python -m pip install -U cx_Freeze
python -m pip install -U pymavlink
python -m pip install -U pywin32
python -m pip install -U python-can
python -m pip install -U .

rem show pip sizes for debug
Expand Down

0 comments on commit b27d913

Please sign in to comment.