View Single Post
  #8   Spotlight this post!  
Unread 29-03-2013, 15:25
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Vision Tracking Help

Quote:
Originally Posted by bprobotics View Post
Alan, I switched to doing the vision processing on the dashboard. In order to get just one image, I set it so that the Loop Iteration > 1, sends true to the loop condition which is stop if true. If the iteration < 1, it sends false to the loop condition. Unless I am mistaken, this should only analyze one image every time the loop runs, correct?
You're really trying hard to do things in a way that the provided code isn't set up to work. That loop is intended to start when the program begins and continue to run until the program is shut down. If you stop it, what's going to start it up again? I urge you modify the example code as little as possible.

Since you've abandoned the easily-controlled cRIO code, the small modification I would suggest is to surround the actual vision processing functions with a Case block that 1) runs when a global boolean is set True, and 2) sets that boolean False when it runs.
Reply With Quote