|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Rapsberry Pi cRIO Integration
Is it possible to integrate the raspberry pi on our robot so that it works with the cRIO. We use java to program our bot.
|
|
#2
|
||||
|
||||
|
Re: Rapsberry Pi cRIO Integration
Quote:
You might find the Network Tables library useful for managing communication with the cRIO. http://wpilib.screenstepslive.com/s/...client-pc-side Mr Tim Klein Code Guild Mentor FRC Team 3966 STEMpunks |
|
#3
|
||||
|
||||
|
Re: Rapsberry Pi cRIO Integration
Team 3946 used a RPi to do our visions processing/goal tracking last year. We created a Socket Server on the Pi in Python and a client in Java (that ran in its own thread as not to disrupt real-time functions if the connection was dropped).
All of our code is available here: UltimateAscent The specific classes you would probably want to look at are ThreadedPi, ThreadedBerryPi under Subsystems, and PrintThreadPiData under Commands. If you want to look at the unthreaded version (also far less tested) the files are SocketPi, RaspberryPi and PrintPiData Here is the code we were running on the RPI: PyGoalFinder Good Luck! Last edited by gixxy : 29-11-2013 at 20:47. |
|
#4
|
|||
|
|||
|
Re: Rapsberry Pi cRIO Integration
We experimented with this a bit last year, I was a fan of using I2C to communicate with the Pi, but I had to write an I2C slave driver to be able to implement that.
If you're interested, let me know and I can try to dig that up for you. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|