Go to Post IRI seeks to invite the very best robots to play the FIRST game, achieving the highest level of play, while keeping in place the FIRST atmosphere. - Nathan Streeter [more]
Home
Go Back   Chief Delphi > Technical > National Instruments LabVIEW and Data Acquisition
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-12-2008, 22:05
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Team Fusion's take on cRIO and LabView

Quote:
Originally Posted by Kevin Sevcik View Post
When your wheels started randomly running, did you have the Driver's Station connected? Was it Enabled? Was it in Autonomous mode?

If the DS wasn't connected or enabled, this shouldn't have happened, and NI, WPI, and FIRST would probably all like to know exactly what you were doing to make it occur.

If the DS was in autonomous mode, the OTB firmware has an autonomous mode that runs the motors for 2 seconds. This might have been what you noticed.

If the robot was in Teleop, you might have run across one of the bugs with the USB ports. First, the kit joysticks center themselves when the DS boots. So if you're leaning on the joysticks when you power up the DS, they'll be horribly off-center. So your motors could start up on their own.

A different issue is if you unplug the joysticks. They'll continue transmitting the old value even though they're unplugged. As far as I can tell, the only cure is to reboot the DS.

Finally, in what's probably a related issue, the joysticks sometimes transmit bad values after the DS starts up, until they're moved. The solution here is to jiggle the joysticks.

So your start up sequence should be:
1. Put Disable DS with dongle switch or by removing dongle.
2. Plug in all joysticks, and don't touch them until step 4.
3. Power up the Driver's Station.
4. When DS is finished starting up, jiggle the joysticks.
5. Enable robot and go to work.

The people responsible for the Driver's Station are apparently looking into the bad values from the joysticks on boot and when unplugged, but there hasn't been word on progress.
Connected to DS in Teleop mode. Thanks for the info, I'll mention that tomorrow.

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.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364

Last edited by RyanN : 17-12-2008 at 22:08.
Reply With Quote
  #2   Spotlight this post!  
Unread 18-12-2008, 07:20
martin417's Avatar
martin417 martin417 is offline
Opinionated old goat
AKA: Martin Wilson
no team
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Buford, GA
Posts: 719
martin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond repute
Re: Team Fusion's take on cRIO and LabView

Quote:
Originally Posted by RyanN View Post
Connected to DS in Teleop mode. Thanks for the info, I'll mention that tomorrow.

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.
Have you tried moving the throttle on joystick#1? After you update the cRIO image, that is the way you switch between arcade and tank drive. Move it all the way one way and you have tank, the other way gives you arcade (not sure which is which though)
__________________
Former Mentor Team 1771
Former mentor Team 4509
Reply With Quote
  #3   Spotlight this post!  
Unread 18-12-2008, 14:39
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Team Fusion's take on cRIO and LabView

Quote:
Originally Posted by martin417 View Post
Have you tried moving the throttle on joystick#1? After you update the cRIO image, that is the way you switch between arcade and tank drive. Move it all the way one way and you have tank, the other way gives you arcade (not sure which is which though)
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...
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
Reply With Quote
  #4   Spotlight this post!  
Unread 18-12-2008, 17:24
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 18-12-2008, 19:08
ChrisH's Avatar Unsung FIRST Hero
ChrisH ChrisH is offline
Generally Useless
FRC #0330 (Beach 'Bots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 1,230
ChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond repute
Re: Team Fusion's take on cRIO and LabView

Quote:
Originally Posted by Luke Pike View Post
.

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.
I THINK this is what we are doing. I just keep the bot running and let the programers play. I am present for most of the testing however.

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.
__________________
Christopher H Husmann, PE

"Who is John Galt?"
Reply With Quote
  #6   Spotlight this post!  
Unread 18-12-2008, 19:41
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
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.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364

Last edited by RyanN : 18-12-2008 at 20:03.
Reply With Quote
  #7   Spotlight this post!  
Unread 19-12-2008, 10:58
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
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.
Reply With Quote
  #8   Spotlight this post!  
Unread 20-12-2008, 03:49
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
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.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
Reply With Quote
Reply


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

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


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

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