View Single Post
  #3   Spotlight this post!  
Unread 23-03-2002, 23:43
ChrisA's Avatar
ChrisA ChrisA is offline
Registered User
#0857 (Superior Roboworks)
Team Role: College Student
 
Join Date: Feb 2002
Location: Michigan Tech
Posts: 157
ChrisA is on a distinguished road
Send a message via AIM to ChrisA
that is one way to do it but if you want to go with the fun way you could get yourself a potentiometer and attach it to the shaft of the motor. starting at lets say 127 you would turn 90 degrees and use debug to find out the value of the pot at that angle. you then find a speed that you can tell it to turn until you get to that angle. the correct speed would be whatever the highest speed you can make the motor turn without it passing the point. globe motors arent that fast and stop pretty quickly.

if you want to get a bit more advanced you can have the speed go on a curve according to the pot value. (ie when the motor is furthest away from the value you want the faster it spins and the closer it is the slower it spins)

if you want to try this and need some help with it feel free to ask me. my team is using this same scenario for our crab drive and it works really really well.
__________________
Programmer
----------------
Team#857
Superior Roboworks

WildStang Alum