View Single Post
  #2   Spotlight this post!  
Unread 23-02-2015, 16:20
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote