View Single Post
  #3   Spotlight this post!  
Unread 29-11-2013, 20:45
gixxy's Avatar
gixxy gixxy is offline
Programming and Arduino Mentor
AKA: Gustave Michel III
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Ruston, LA
Posts: 207
gixxy is on a distinguished road
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!
__________________
Programmer - A creature known for converting Caffeine into Code.
Studying Computer Science @ Louisiana Tech University
Associate Consultant @ Fenway Group

2012-13: 3946 - Head of Programming, Electrical and Web
2014 - 3468 - Programming Mentor
2015 - Present - Lurker

Last edited by gixxy : 29-11-2013 at 20:47.
Reply With Quote