View Single Post
  #1   Spotlight this post!  
Unread 08-11-2007, 13:21
youngWilliam14's Avatar
youngWilliam14 youngWilliam14 is offline
Team 461 Electrician and Operator
AKA: Will Crabtree
FRC #0461 (Westside Boiler Invasion)
Team Role: Electrical
 
Join Date: Jan 2007
Rookie Year: 2006
Location: West Lafayette, IN
Posts: 184
youngWilliam14 has much to be proud ofyoungWilliam14 has much to be proud ofyoungWilliam14 has much to be proud ofyoungWilliam14 has much to be proud ofyoungWilliam14 has much to be proud ofyoungWilliam14 has much to be proud ofyoungWilliam14 has much to be proud ofyoungWilliam14 has much to be proud of
Send a message via AIM to youngWilliam14
programing the vex optical shaft encoder

i'm having a small problem w/ optical shaft encoders on the vex swervebot i'm building. the encoders tell the rc how far the drive pods have turned.

in the program, i start all the encoders, and have them retrive to variables. once the vairables reach a the right value, the pods stop turning, then i reset the variables when the pods need to turn back.

my problem is that i allign all the pods, but when i test the program, they don't all turn the same amount, so they're off when they come back. i think it might be how i set up the motors to run.

can anyone help me fix this? i'm including a copy of my code
Attached Files
File Type: zip swervebot.zip (2.2 KB, 183 views)
__________________

"C.N.C." lyrics/"Driving on Regolith" lyrics
Let's all go nuts! Robots! Robots!--Team 461 chant