View Single Post
  #5   Spotlight this post!  
Unread 23-02-2009, 11:02
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Moving Camera Servos With Joystick Button

What Greg suggests will work great, just be careful about how often you change the angle. If you change the servo setpoint whenever the button is held down, then the servo will almost instantly go to it's extreme angle. The reason being that the loop runs really fast, so you increment the setpoint very fast and it builds up to the max quickly.

I would check the time and only do the servo code when a certain amount of time has passed.
__________________
Twitter Profile
Reply With Quote