View Single Post
  #24   Spotlight this post!  
Unread 18-04-2013, 17:14
propionate's Avatar
propionate propionate is offline
Team co-lead and LabVIEW programmer
AKA: Stephen
FRC #1732 (Hilltopper Robotics)
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Milwaukee
Posts: 93
propionate is on a distinguished road
Re: Encoders (What's up with those?)

Quote:
Originally Posted by Ether View Post
You probably don't want the default of 1 with six pieces of tape, especially if it's sampling both rising and falling edges.

Try this: one piece of tape with the default sample size of 1 and setup to sample rising edges only. That way, it's always sampling the same edge of the same piece of tape, so the spacing is perfect... and with your 20ms update rate, you'll be getting a fresh reading every execution or your controller loop at wheel speeds of 3000 RPM or higher.


I will give this a go tonight and let you know the results. Thanks for the recommendations.