# SaltyBot UWB anchor USB-serial persistent symlinks
# Install:
#   sudo cp 99-uwb-anchors.rules /etc/udev/rules.d/
#   sudo udevadm control --reload && sudo udevadm trigger
#
# Find serial numbers:
#   udevadm info -a /dev/ttyUSB0 | grep ATTRS{serial}
#
# Fill ANCHOR0_SERIAL and ANCHOR1_SERIAL with the values found above.
# Anchor 0 = port  side → /dev/uwb-anchor0
# Anchor 1 = starboard  → /dev/uwb-anchor1

SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", \
    ATTRS{serial}=="ANCHOR0_SERIAL", \
    SYMLINK+="uwb-anchor0", MODE="0666"

SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", \
    ATTRS{serial}=="ANCHOR1_SERIAL", \
    SYMLINK+="uwb-anchor1", MODE="0666"
