View Single Post
  #4   Spotlight this post!  
Unread 23-02-2009, 08:38
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: Moving Camera Servos With Joystick Button

Sorry, I'm not at a PC right now. The code I'd write first is the joystick stuff. Inside the teleop you are either unbundling buttons already, or you are about to. Use the buttons to affect the servo setpoint with + or -. Then add a shift register to the loop initialized to centered I guess. Run the shift register wire to the cases doing the + and -. Prove the wire and test it out. Once you are happy with it, connect up the servo open, close, and the write angle.

Greg McKaskle
Reply With Quote