View Single Post
  #4   Spotlight this post!  
Unread 20-02-2012, 20:00
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: getting distance from camera

There is a tutorial, available on the launch screen that walks you through the basics of the Rectangle example.

There are actually two different implementations, one targets the laptop, and one targets the cRIO. The cRIO one already has some amount of Robot Main and a Vision Processing.vi that incorporates the rectangle processing. As the tutorial explains, you open the vision processing and do a Save As and include dependencies to save it to your robot project. This will overwrite the Vision Processing VI and the Robot Globals, which should be what you want, but if you have added your own globals, you need to merge them.

Greg McKaskle
Reply With Quote