View Single Post
  #4   Spotlight this post!  
Unread 06-02-2009, 13:40
3DWolf's Avatar
3DWolf 3DWolf is offline
Boots - Head Programmer / 3D
AKA: Jake
FRC #1502 (Technical Difficulties)
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Chelsea Michigan
Posts: 97
3DWolf is on a distinguished road
Send a message via AIM to 3DWolf Send a message via MSN to 3DWolf
Re: How to Program a Servo

Quote:
Originally Posted by byteit101 View Post
Not on a servo (last i checked it is 0-170) though I don't know about the team update 3
You're getting your functions confused.
servo.Set() accepts a range from -1 to 1 for min to max values of the servo - this is here so you can just directly accept another float value from something else (like a joystick) and just set it directly.
servo.SetAngle() accepts an angle that you wish to set your servo at. Try using this with your 170 angle and see if that works.
__________________
You can call it the programming teams fault, but we'll just force your arguments nil.

There are 10 kinds of people in the world -> Those who understand binary and those who don't.

WYSIWYG - In FIRST: Greatness
Reply With Quote