Go to Post I never wanted to be a teacher. This was the year I learned that I am one. It turns out mentors are teachers. Oops. - marshall [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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