View Single Post
  #5   Spotlight this post!  
Unread 23-02-2004, 23:45
wun's Avatar
wun wun is offline
Registered User
AKA: David Wolever
#0865 (Warp7)
Team Role: Programmer
 
Join Date: Dec 2003
Rookie Year: 2001
Location: Toronto
Posts: 84
wun will become famous soon enough
Send a message via AIM to wun Send a message via MSN to wun
Re: How to program servos

Quote:
Originally Posted by ahecht
Treat them just like you would a motor, except that instead of outputting a speed from -127 to +127
-127 to +127?
I thought the readings had to be from 0 to 255...
Are you just adding 127 to the outputs at the end of your main loop?
Can you actually use +127 .. -127 and I just havent heard about it?
Quote:
Originally Posted by bstempi
didn't work....any possible problems/solutions?
What didnt work? Did the motors just not move?
If you hook a victor up to the outputs, does the little orange light go solid?
If it dosent, it means that theres a problem with the code (probibly), and if it IS solid orange, and changes from green to red when you change the signal being sent to it (moving the joystick), then your servo is probibly broken.
Also, I read somewhere that last years servos dont work. That might be it.
__________________
Help Microsoft stop piracy. Use Linux!

I have three gmail invitations, message me if you want one