View Single Post
  #2   Spotlight this post!  
Unread 25-01-2011, 22:31
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Encoder setDistancePerPulse()

Quote:
Originally Posted by kinganu123 View Post
Now if I used a counter, I'd get crazy numbers. I'd run it for 5 seconds, and I'd get 448705 as my last number, which makes no sense.
If I used the getRate(), I get NaN
I'm assuming that I need to use setDistancePerPulse
I have the E4P, so what should I set as the distance per pulse?
Distance per pulse is something you set based on your wheel radius and other factors. The kit encoder this year is 1440 pulses per revolution (1440) thus 0.25 degrees per pulse.
Reply With Quote