N17BLDC/fw/can_if_up.sh
2025-06-14 11:46:38 +02:00

11 lines
314 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
# y mon --plug-and-play ~/allocation_table.db