View Single Post
  #8   Spotlight this post!  
Unread 11-03-2013, 13:53
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: Hi-Tec Servo Help

Quote:
Originally Posted by MI6 View Post
I want it so when i push left it goes left and when i stop it stays where it is.
So when the joystick X value is negative you want to constantly decrement the servo position, when the joystick X value is positive you want to constantly increment the servo position, and when the joystick X value is zero you want to leave the servo position alone.

Quote:
but i also want to be able to push left and up at the same time and have the camera do it.
Fine. On a second servo: for X above substitute Y.

Quote:
and i want it to move at the fastest speed without losing video quality
You'll have to determine this rate yourself. It'll define how often you need to check the joystick value and increment/decrement the servo position. If it makes sense, you can check less often but move the servo farther each increment.

Does that help?
Reply With Quote