|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Does anyone know how to hook up a pi to the cRIO??? And if so, how can we attach a camera with no lag and do vision tracking (through the pi)?
|
|
#2
|
||||
|
||||
|
Re: HELP! Raspberry Pi
Quote:
The search function is your best friend ![]() |
|
#3
|
|||||
|
|||||
|
Re: HELP! Raspberry Pi
Quote:
"Raspberry Pi cRio" is a good search term that will bring up all these threads... http://www.chiefdelphi.com/forums/se...archid=5301259 Jason |
|
#4
|
||||
|
||||
|
Re: HELP! Raspberry Pi
In case you are wondering there is no direct support in FRC LabVIEW/C++/Java for connecting your robot to a Raspberry Pi. The simplest way (depending on what language and your knowledge of them) is to communicate via GPIO. Basically when the robot gets the Auto mode packet from the DS is sets a line to TRUE or HIGH. Pi starts taking pics of the nearest reflective tape or goal lights, and when it sees white (tape) or yellow (goal lights) it sets a GPIO line to the C-Rio High telling it to shoot.
You can also use serial/I2C/SPI. Just remember the voltage level on the Pi's I/O pins is 3.3V the digital sidecar I/O runs at 5v. Also very very important! You need to let your Pi shut down as opposed to just powering of the robot and the pi at the same time One way is once the Pi gets the first signal from the C-Rio that it is in Auto have the Pi start a timer to shut down in 10-12sec if you only use it in auto or 2min 30sec if you use it in Teleop as well. And have extra SD cards with the OS and your code ready to switch out. Last edited by jman4747 : 24-01-2014 at 12:22. Reason: Dont forget this! |
|
#5
|
||||
|
||||
|
Re: HELP! Raspberry Pi
If you are using a co-processor, you are already thinking out of the box. You will also need to think out of the box to devise a method of communicating, Pi<=>cRIO. I think you might find i2C quite easy and since it is hardwired to the cRIO, it will be high-speed, minimal lag. Also, the lag that will be present can actually by thought about before and can be compensated for in the code!
|
|
#6
|
|||
|
|||
|
Re: HELP! Raspberry Pi
we connect the Pi to the router on the robot, and talk with it using UDP (legal under R57)
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|