View Single Post
  #3   Spotlight this post!  
Unread 17-01-2016, 15:44
curtis0gj curtis0gj is offline
Registered User
FRC #5033 (Beavertronics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Canada
Posts: 121
curtis0gj will become famous soon enough
Re: Using Encoder to Drive a Certain Distance

Quote:
Originally Posted by techkid86 View Post
Remember to use the encoder reset, and start function when initializing (This was a mistake my team made when first getting into them). It looks as though you have all you need other than that though. Just use if statements to progress through your autonomous when target distances are met. best of luck

Also, be careful about what encoders you use. The standard andymark encoders are very... finicky. Make sure if you use them, you don't EVER have to disassemble the drive system. (don't take them off)
Just curious about the set distance per pulse function. Is this function the ratio between how far each pulse will take the robot?

For example if I were to calculate the circumference of the wheel (in inches). Then divide the circumference of the wheel by the number of pulses in a full revolution (which is 1440 I think if I am using x4 encoding). Then set the distance per pulse to the circumference/number of pulses in one revolution would it make one full revolution move the robot one inch?

Sorry if this is not clear enough I can try to clarify if it makes zero sense.
Reply With Quote