Thread: Encoders
View Single Post
  #3   Spotlight this post!  
Unread 07-05-2006, 19:25
Ctx32 Ctx32 is offline
Registered User
no team
 
Join Date: Apr 2006
Location: Florida
Posts: 10
Ctx32 is an unknown quantity at this point
Re: Encoders

Quote:
Originally Posted by Francis-134
What you need to do is to make a program that makes the robot go in whatever direction you wish UNTIL a certian number of encoder clicks is reached. For example, if you wanted to go five rotations of the wheel forward, then you would tell the robot to go forward until the encoder count reached 450 clicks (90 clicks per rotation * 5 rotations). In order to go back the same ammount, you have to preset the encoder to zero (the Vex encoders don't know whether you are going backwards or forwards) and set the motor to go backwards until it reads another 450 clicks (using the example above).

If you want to see how many clicks it is to a certian spot, download the "ENCODERTEST" program from the test code folder. Then, bring up the terminal window and see what the reading is once you reach a certian spot. If you need help specificaly about the encoder blocks, take a look in the help file which explains them very nicely. I hope this helps you, but if it dosen't, come on back and I'm sure someonw can help you.

Thats my problem, How do you tell the motor to go forward say 90 clicks?
Is this how: Begin - Start Encoder - Get encoder - motor module clockwise
If -encoder ==90 - stop motor.

Is this correct?
and how do you reverse it?
I'm sorry I'm really lost.
Thanks for your help.
Calvin