Quote:
Originally Posted by el-zoroo
We had this same problem too. The quick fix appears to be to construct the Encoder with a 2x encoding type, i.e.
Code:
//Assuming Encoder is connected to DIO 1 and 2 and not reversed
Encoder sensor = new Encoder(1,2,false,CounterBase.EncodingType.k2x)
I do not know if it is a bug with the WPILib. Maybe someone else can confirm.
Hope that helps! 
|
This definitely helps, but i get weird numbers like 0.0.0054465 and .00045678
Any idea what it means?
UPDATE
nvm, I did a powercycle and i got better numbers
what are the units the encoder returns?