|
Re: Encoder Trouble
Another thing crucial to getting Encoders to work is using the setDistancePerPulse() method.
You experimentally determine this constant by rolling the robot over a pre-determined distance, and recording the number of pulses from the get() method.
Then it's as easy as dividing distance by the number of pulses, and using the setDistancePerPulse() before getting the distance.
Hope this helps.
If this still doesn't work, maybe try posting the code, and we can look it over.
|