Go to Post The Manual is the "requirements document" for your project. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 16-02-2010, 00:08
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Exclamation camera tracking

ok we had camera tracking working lining up the robot at a modified speed but then it just stopped tracking the green circle does not even show up anymore
i have checked the code to the default code and everything is correct and nothing in the program has changed(that i can see) since it was working!
does anyone have any suggestions on things to check programming,electrical,anything?
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2010, 08:05
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: camera tracking

Turn the lights back on.

I'm only half joking. Vision measures light, so if there were dramatic changes and your code stopped working, it could be that it was tuned so that it was just barely working before and enough lighting changed to break it.

First, make sure you can still drive the robot using the joystick.

Next, even without a target, the default code will aim at 0 on the gyro. You can reset the gyro using the joystick, rotate it to point somewhere else, and push the button to rotate.

Finally, verify that the front panel button for Vision Processing is still on. Open the subVI for Finding the target and probe the image wire coming in. If that is OK, probe further downstream after it is just grayscale.

If you don't find the issue, post the values you are using for the Find Target. Specifically, what is the threshold number, min and max sizes, etc?

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2010, 09:47
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Re: camera tracking

ok we have
1.full drive, kicker, and roller with the robot
2.the gyro works as the code turns toward zero on the gyro position
the rest i will check later
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2010, 18:53
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Re: camera tracking

my values are
edge threshold=120
min target score=4
min elispe score=900
min radii=0.04
max=0.5
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2010, 06:19
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: camera tracking

Those values look OK. What is your camera resolution, where are you on the field, and does it work for some but not all, or for no target images at all?

Finally, if you probe the image going into the Find Ellipse subVI, does the image look OK?

Greg McKaksle
Reply With Quote
  #6   Spotlight this post!  
Unread 17-02-2010, 08:58
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Re: camera tracking

the camera resolution is the middle one 320 by something i think
the tracking does not work whether it is 2 or 20 feet or anything in between
i have yet to probe the image the build team has been all over the robot but i rebuilt the code from the default which works and i will try that today
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
Camera tracking at 110ms Bomberofdoom Programming 12 13-02-2009 11:35
Camera Tracking Tanner NI LabVIEW 5 01-02-2009 11:28
Camera locked in "tracking", but not tracking geeknerd99 Programming 1 18-02-2007 22:47
camera tracking geekofband007 Programming 15 15-02-2007 23:50
Camera Tracking Woes VideoMan053 Programming 4 29-01-2005 18:09


All times are GMT -5. The time now is 08:39.

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