View Single Post
  #3   Spotlight this post!  
Unread Yesterday, 03:05
bmfrc bmfrc is offline
Registered User
FRC #5554
 
Join Date: Feb 2017
Location: Israel
Posts: 11
bmfrc is an unknown quantity at this point
Re: encoder PIDController and set

Quote:
Originally Posted by ollien View Post
1. If your wheel RADIUS is 10cm, then you should set setDistancePerPulse(10/PULSES_PER_REVOLUTION). GetDistance will then get the total distance in cm and getRate will get the total cm per second.

2. Use ppr. The reason your values don't make sense is because you used circumference instead of radius.
Thanks for your help!!

Are you sure we should use the radius and not the circumference??
AFAK pulses represents degrees, so circumference/ppr will get the distanse per degree or degree fraction.
Reply With Quote