View Single Post
  #4   Spotlight this post!  
Unread 13-02-2007, 09:42
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,112
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: I'm having trouble with this camera stuff

Quote:
Originally Posted by Bomberofdoom View Post
How exactly do you stop calling a function? Unless you use an if code to define that once something happens, move on with the code, not going over Servo_Track() again, how can you stop calling it?
That is exactly how you do it.
Code:
  if(I_want_to_search)
    Servo_Track();
Just make "I_want_to_search" true to begin with, and make it false when you don't want to call Servo_Track() anymore.