Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
raspberry_pi_with_talon_srx [2019/01/14 22:28] bobraspberry_pi_with_talon_srx [2019/01/14 22:49] (current) bob
Line 28: Line 28:
     dtparam=spi=on      dtparam=spi=on 
     dtoverlay=mcp2515-can0,oscillator=8000000,interrupt=25,spimaxfrequency=1000000      dtoverlay=mcp2515-can0,oscillator=8000000,interrupt=25,spimaxfrequency=1000000 
-  +
   * Reboot and make sure CAN and SPI devices show up   * Reboot and make sure CAN and SPI devices show up
  
Line 36: Line 36:
 ===== Install CTRE Software ===== ===== Install CTRE Software =====
      
 +  sudo apt-get install libsdl2-dev
 +  sudo apt-get install cmake
 +
 Example libraries, headers, and example code are at: Example libraries, headers, and example code are at:
      
-  https://github.com/CrossTheRoadElec/Phoenix-Linux-SocketCAN-Example+https://github.com/CrossTheRoadElec/Phoenix-Linux-SocketCAN-Example 
   wget https://github.com/CrossTheRoadElec/Phoenix-Linux-SocketCAN-Example/archive/master.zip   wget https://github.com/CrossTheRoadElec/Phoenix-Linux-SocketCAN-Example/archive/master.zip
   unzip -l master.zip    unzip -l master.zip 
Line 44: Line 48:
   sudo cp -R include/* /usr/local/include   sudo cp -R include/* /usr/local/include
   sudo cp lib/raspberry/* /usr/local/lib/   sudo cp lib/raspberry/* /usr/local/lib/
- 
-Headers only are at: 
- 
-  wget http://www.ctr-electronics.com//downloads/lib/CTRE_Phoenix_FRC_Linux_5.12.0.zip 
-  unzip CTRE_Phoenix_FRC_Linux_5.12.0.zip 
-  unzip -d /usr/local/include/ core-5.12.0-headers.zip 
-  unzip -d /usr/local/include/ api-cpp-5.12.0-headers.zip 
-  unzip -d /usr/local/include/ wpiapi-cpp-5.12.0-headers.zip 
      
-  sudo apt-get install cmake +  chmod 755 build.sh 
-  sudo apt-get install libsdl2-dev +  chmod 755 clean.sh 
 +  ./build.sh