|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Team Fusion's take on cRIO and LabView
Quote:
Just posted this in the FIRST forums. We are stuck in Arcade Mode. We performed the updates to the DS and the cRIO. We had tank drive working for a while (just randomly started working) but then it went back to Arcade style. Last edited by RyanN : 17-12-2008 at 22:08. |
|
#2
|
||||
|
||||
|
Re: Team Fusion's take on cRIO and LabView
Quote:
|
|
#3
|
||||
|
||||
|
Re: Team Fusion's take on cRIO and LabView
I'm starting to learn how to use LabVIEW and figured out how to make it work. We now have live video going to the laptop wirelessly from a kitbot. We're now working on camera tracking... Help? Haha...
|
|
#4
|
||||
|
||||
|
Re: Team Fusion's take on cRIO and LabView
Camera tracking was the hardest thing to get working. The Example programs look very complicated, so you hardly know where to start, let alone how to drive a robot with it.
I found out, through much experimentation, that you really only need two vision vi's, IMAQ Color Threshold and IMAQ Particle Analysis Report. You wire the image from the camera and wire the color range you want into the Color Threshold vi. This vi looks for the color you specify and removes any pixels that are not in the color range. You can then wire the resulting image into the particle analysis. The Particle Analysis vi will give you an array of particle reports for every particle mass it finds. You probably want to make a global for the particle reports so you can access them in autonomous. The report with the highest area is the object your looking for. You can get the center of mass from the report and use it to compute how much to turn. Hope that helps. There's a lot there, I might have to make a tutorial if it doesn't make sense. |
|
#5
|
||||||
|
||||||
|
Re: Team Fusion's take on cRIO and LabView
Quote:
We have been amazed at how insensitive the camera is to variations in lighting. When you think about it a red ball in a dark space has not changed color, but our perception of its color has. We think it is a darker color. This camera is not fooled. If there is even a very little bit of light the camera will find the color it is looking for. The biggest problem is on the other end. If the light is too bright the color washes out. With this system 2005 would have been a very different game. |
|
#6
|
||||
|
||||
|
Re: Team Fusion's take on cRIO and LabView
Thanks for the help with camera tracking. I also cannot figure out how to use the buttons on the joysticks. I've spent a lot of time trying to figure it out, and I'm sure I'm looking over something very simple. I guess I cannot find the right vi.
Also, how many people are having trouble with laggy connections to the robot? We were able to get the live video feed to the robot, but could only run it on 160 x 140... or whatever the lowest setting was at 5FPS to keep it controllable. With the highest setting, the robot saw a 2 - 3 second delay. Everything else seems to be working well. We're bringing our test board and a kitbot to NASA on Saturday for training purposes. I'm happy with the space this system takes up, and was able to fit everything onto a pretty small board minus the gaming adapter and camera. Here's a video of the control system's first trip. http://www.youtube.com/watch?v=DYC_U43QLhQ Note: The video may not be up quite yet, but it should be soon. Last edited by RyanN : 18-12-2008 at 20:03. |
|
#7
|
||||
|
||||
|
Re: Team Fusion's take on cRIO and LabView
Yeah, using the joystick buttons isn't very intuitive. You have to use the Joystick Get Raw vi. One of the outputs is a cluster of button values. Use an Unbundle By Name vi and select which button you want. We are only using two buttons right now, the ones on the top. I think those are buttons three and two.
Laggy connection? When your pulling in data from the camera and displaying it on the front panel, it can be pretty slow. If you download your project to the cRIO as a start up program, it will run without a connection to the front panel, which I have found to be a lot faster. When I was trying to get camera tracking to work, the robot would turn for too long, and then would try to correct, overshooting again until it couldn't see the object. Once I downloaded the project, it was much more responsive, and it could track better. We have our camera set to 320X280 and the fps to 30. Good job on getting the robot running! It looks great. |
|
#8
|
||||
|
||||
|
Re: Team Fusion's take on cRIO and LabView
Cool! I have it written up in LabVIEW, just need the robot now. Maybe I can try it tomorrow, and hopefully it works.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pic: Team Fusion's T-Shirt Shooting Robot | jdhawg | Robot Showcase | 72 | 23-05-2009 23:39 |
| cRIO: Traditional or LabVIEW? | Spartan151 | Programming | 6 | 23-10-2008 17:18 |
| Students build SEGWAY in 3 months using Labview and the cRIO | neutrino15 | Programming | 31 | 27-04-2008 22:08 |
| Take some time, read the manual, take a breather, and calm down. | Elgin Clock | General Forum | 8 | 08-01-2006 18:35 |
| What does it take to be considered and elite team? | Jim Schaddelee | General Forum | 20 | 24-06-2005 10:59 |