|
Re: Using xbox thumbstick to control servos on pan/tilt
I don't fully understand what you're asking for. Do you want the camera position to follow the joystick, except for when the joystick is at neutral/center? Or do you want the joystick to control the camera's motion, such that the camera continuously tries to pan right while the joystick is right of center, or to stay in motion downward while the joystick is positioned down, and stay where it is when the joystick is returned to center?
Depending on what you really want, you might need to add a button that must be pressed in order to tell the camera servos when you want the joystick to control them. That way, releasing the button will make the camera position hold in place, regardless of the joystick position.
|