View Single Post
  #5   Spotlight this post!  
Unread 31-01-2010, 20:13
psychomonkey psychomonkey is offline
Mr. February
AKA: Seth Rhodes
FRC #1592 (Bionic Tigers)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Fairbanks, Alaska
Posts: 23
psychomonkey is an unknown quantity at this point
Re: Controlling the camera with a joystick

Quote:
Originally Posted by lscime View Post
Essentially you can tell the servo "goal" position to increment by 1 (or another value) every time the main loop loops if a certain condition is met (i.e. a joystick in a particular position). The servos will constantly goal seek on this new position. We accomplished this by storing the "goal" position in a shift register and incrementing/decrementing/not changing this value depending on a case statement triggered by a joystick.
So, if I understand correctly, In order to run this code, it must be in a while loop INSIDE the initial teleop case structure? I tried doing this and every time, I would get a watchdog error. I know that I didn't have a shift register. Do I need one on each side of the loop?
__________________
In a time... When the greatest comeback occured... There was... MR. FEBRUARY!!!