Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Rapsberry Pi cRIO Integration (http://www.chiefdelphi.com/forums/showthread.php?t=120095)

tuXguy15 06-10-2013 19:12

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.

MrTimKlein 09-10-2013 12:11

Re: Rapsberry Pi cRIO Integration
 
Quote:

Originally Posted by tuXguy15 (Post 1294914)
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.

Yes, but read the rules about additional electronics on the bot. Particularly rules about control of actuators.

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

gixxy 29-11-2013 20:45

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!

tp2357 01-01-2014 22:47

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.


All times are GMT -5. The time now is 22:13.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi