N17BLDC/fw/can_if_up.sh
2025-06-14 19:32:51 +02:00

12 lines
349 B
Bash
Executable File

#!/bin/bash
sudo ip link set can0 type can bitrate 500000 && sudo ip link set can0 up
rm ~/allocation_table.db
export UAVCAN__CAN__IFACE="socketcan:can0"
export UAVCAN__NODE__ID=127
export UAVCAN__CAN__MTU=8
export UAVCAN__CAN__BITRATE=500000
# y mon --plug-and-play ~/allocation_table.db