Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
raspberry_pi_with_talon_srx [2019/01/11 21:27] – bob | raspberry_pi_with_talon_srx [2019/01/14 22:49] (current) – bob | ||
---|---|---|---|
Line 6: | Line 6: | ||
apt-get install libsocketcan-doc | apt-get install libsocketcan-doc | ||
| | ||
- | ===== Install CTRE Software ===== | ||
- | | ||
- | wget http:// | ||
- | unzip CTRE_Phoenix_FRC_Linux_5.12.0.zip | ||
- | unzip -d / | ||
- | unzip -d / | ||
- | unzip -d / | ||
- | | ||
- | sudo apt-get install cmake | ||
- | sudo apt-get install libsdl2-dev | ||
- | |||
===== Waveshare RS-485 / CAN Hat ===== | ===== Waveshare RS-485 / CAN Hat ===== | ||
Line 39: | Line 28: | ||
dtparam=spi=on | dtparam=spi=on | ||
dtoverlay=mcp2515-can0, | dtoverlay=mcp2515-can0, | ||
- | | + | |
* Reboot and make sure CAN and SPI devices show up | * Reboot and make sure CAN and SPI devices show up | ||
Line 45: | Line 34: | ||
dmesg | grep -i ' | dmesg | grep -i ' | ||
| | ||
+ | ===== Install CTRE Software ===== | ||
| | ||
+ | sudo apt-get install libsdl2-dev | ||
+ | sudo apt-get install cmake | ||
+ | |||
+ | Example libraries, headers, and example code are at: | ||
+ | | ||
+ | https:// | ||
+ | |||
+ | wget https:// | ||
+ | unzip -l master.zip | ||
+ | cd Phoenix-Linux-SocketCAN-Example-master | ||
+ | sudo cp -R include/* / | ||
+ | sudo cp lib/ | ||
+ | | ||
+ | chmod 755 build.sh | ||
+ | chmod 755 clean.sh | ||
+ | ./build.sh | ||
+ |