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