View Single Post
  #4   Spotlight this post!  
Unread 16-10-2014, 20:49
jman4747's Avatar
jman4747 jman4747 is offline
Just building robots
AKA: Josh
FRC #4080 (Team Reboot)
Team Role: CAD
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Atlanta GA
Posts: 422
jman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond repute
Re: Vision Processing with Raspberry Pi

Quote:
Originally Posted by matan129 View Post
Alright, thanks. And programmatically-wise, how can I output command from the RPi to the RoboRio (and make the RoboRio "understand" them)?

Although I have some programming experience, I have never done anything like this before, and the same goes for the other programmers in my team. So we are starting from scratch.
Unfortunately I have only done this in LabView and I believe you mentioned using C++. I never did find an example of how to utilize the RS-232 port on the C-Rio and had to ask around here (CD) and experiment which I imagine you will have to do. I could post some LV examples so you can get an idea of the algorithm at least. Also I didn't do much of the work with the R-PI so I can't advise as much there though there are way more tutorials on using the UART on the PI.

Basically UART and RS-232 allow you to send ascii characters over the bus. This makes it very easy to come up with your own command set for your system. You can basically tell the PI to write "SHOOT" or "stop" to the UART and the RIO will see the characters "SHOOT" or "STOP" on the other end and vise versa. You can for instance use an equal to comparator to check if what is in the input buffer is "SHOOT" or not and if it is output a TRUE to be used by some other part of the code.
__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080

Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812

#banthebag
#RIBMEATS
#1620