Skip to content

Commit

Permalink
[clearpath_platform] Added J100 MCU, FTDI and Logitech joy udev rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonybaltovski committed Jun 7, 2023
1 parent e793ef2 commit bbc9246
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
__pycache__/
*.py[cod]
.obj-x86_64-linux-gnu/
debian/
16 changes: 16 additions & 0 deletions clearpath_robot/debian/udev
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Udev rule for the Prolific Serial-to-USB adapter shipped standard with Clearpath Husky A200
SUBSYSTEMS=="usb", ATTRS{manufacturer}=="Prolific*", SYMLINK+="clearpath/prolific clearpath/prolific_$attr{devpath}", MODE="0666"

# World-writeable permissions and a symlink for the Jackal J100 MCU.
SUBSYSTEM=="tty", ATTRS{idProduct}=="5740", ATTRS{idVendor}=="0483", MODE="0666", SYMLINK="clearpath/j100"

# Recognize Clearpath flavoured FTDI cables.
SUBSYSTEM=="tty", ATTRS{idProduct}=="6001", ATTRS{idVendor}=="0403", ATTRS{product}=="Clearpath Robotics /*", MODE="0666", PROGRAM="/bin/echo '%s{product}'", SYMLINK+="clearpath%c{3}"

# Rule to enable low latency mode for FTDI adaptors, regardless if flavoured or not.
SUBSYSTEM=="tty", KERNEL=="ttyUSB[0-9]*", ATTRS{idProduct}=="6001", ATTRS{idVendor}=="0403", MODE="0666", RUN+="/bin/bash -c 'echo 1 > /sys$devpath/device/latency_timer'", SYMLINK+="ftdi_%s{serial}"

# Udev rule for the Logitech controllers
KERNEL=="js*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c21f", SYMLINK+="input/f710"
KERNEL=="js*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c219", SYMLINK+="input/f710"
KERNEL=="js*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c21d", SYMLINK+="input/f310"

0 comments on commit bbc9246

Please sign in to comment.