|
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
|