Thread: Encoders
View Single Post
  #2   Spotlight this post!  
Unread 07-05-2006, 17:20
Francis-134's Avatar
Francis-134 Francis-134 is offline
Lifer
FRC #0190 (Gompei and the Herd)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Worcester, MA
Posts: 598
Francis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond repute
Re: Encoders

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.
__________________

Email | Twitter | Facebook | YouTube | Twitch
iTunes Podcast | Snapchat

A proud alumnus of teams 134 and 40 || Mentor of Team 190 || Director of Fun for BattleCry@WPI