|
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
|