4239 Mack
18-02-2014, 23:18
We are using an encoder for the first time on our robot. Whenever we try to use it or declare it our robot doesnt work.
Encoder encoder = new Encoder(3, 4);
That is what we are using for the encoder and to get the values we are using.
encoder.get();
Can anyone help us set this up or provide a detailed tutorial for using an encoder in java?
EDIT: we have also tried using this.
Encoder encoder = new Encoder(3,4,false,EncodingType.k4x);
Encoder encoder = new Encoder(3, 4);
That is what we are using for the encoder and to get the values we are using.
encoder.get();
Can anyone help us set this up or provide a detailed tutorial for using an encoder in java?
EDIT: we have also tried using this.
Encoder encoder = new Encoder(3,4,false,EncodingType.k4x);