|
Re: How to Program a Servo
Quote:
Originally Posted by byteit101
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.Set Angle() 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
|