-
Couldn't load subscription status.
- Fork 16
Home
Welcome to the opendlv wiki!
If your computing unit provides several network interfaces, it is recommended to specify the route to the UDP multicast network:
sudo route add 225.0.0.0/24 dev eno1
where eno1 is the network interface that shall be used by odsupercomponent.
To use the Peak CAN device with OpenDaVINCI and OpenDLV, it is important to disable the NETDEV support (cf. http://www.peak-system.com/fileadmin/media/linux/index.htm):
make clean; make NET=NETDEV_SUPPORT; make install
Next, it is required to define the correct bitrate (https://www.peak-system.com/fileadmin/media/linux/files/Installation-en_ab6.9.pdf). To set the bitrate to 250k Baud run
ip link set can0 type can bitrate 250000
To check that the setting was applied successfully run
ip -details link show can0
Also the file /proc/pcan can be checked to confirm that the column ndev says can0 and the column btr says 0x11c (which represents 250k).
Unloading the device driver:
rmmod pcan
Loading the device driver:
modprobe pcan
To brake the truck, one has to send a negative acceleration in the BrakeRequest message.
To accelerate the truck, one has to send a desired acceleration pedal position as percentage value between 0 and 100.
To steer the truck using the delta torque message, the roadwheelangle field needs to be set to 35.535.