Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   camera tracking (http://www.chiefdelphi.com/forums/showthread.php?t=82792)

bladetech932 16-02-2010 00:08

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?

Greg McKaskle 16-02-2010 08:05

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

bladetech932 16-02-2010 09:47

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

bladetech932 16-02-2010 18:53

Re: camera tracking
 
my values are
edge threshold=120
min target score=4
min elispe score=900
min radii=0.04
max=0.5

Greg McKaskle 17-02-2010 06:19

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

bladetech932 17-02-2010 08:58

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


All times are GMT -5. The time now is 04:46.

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