View Single Post
  #7   Spotlight this post!  
Unread 12-01-2013, 08:15
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,751
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: 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
Reply With Quote