|
Re: Vision example controlled motors
Blue means that the aspect ratio is more like the outer 2-point goals than the inner 3-point goal.
To debug the distance and other stuff, I'd recommend running on the PC, or if running on the cRIO, turn on the View buttons. This will let you see if the camera is in focus, is pointed at the targets, is too close, etc.
After that, you can trace the numbers being calculated through the Compute Distance VI. It is pretty simple code. It may not be obvious at first what it is doing, but it is not complicated. Please ask questions if something doesn't make sense and you've discovered why your numbers are off by that much.
Greg McKaskle
|