Thread: Motor Speed
View Single Post
  #3   Spotlight this post!  
Unread 25-01-2008, 19:11
tseres's Avatar
tseres tseres is offline
obsessed with FIRST...
FRC #1565 (Think Tank Tech)
Team Role: Leadership
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Cambridge, ON
Posts: 305
tseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of light
Re: Motor Speed

also, manufacturing isn't perfect. we had this problem last year. what happens is 255 to one motor might only act like 230 (exaggeration) on another. one wyay to fix this is to individually slow down each motor to calibrate them:

pwmXX-=127;
pwmXX*=0.9 //for 90% power
pwmXX+=127;


the other (and preferred) way is to use sensors like (ideally) encoders, but you could use a gyro to make it go straight, or, dare i say it, gear tooth sensors as encoders (it only requires a slight modification to kevin's encoder code). the only problem is that GTS's have to be almost touching the gear to get a reading, and thereadings are usually pretty sketchy.

good luck!
__________________