|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Help with Encoder
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.
Code:
Encoder encoder = new Encoder(3, 4); Code:
encoder.get(); EDIT: we have also tried using this. Code:
Encoder encoder = new Encoder(3,4,false,EncodingType.k4x); |
|
#2
|
||||
|
||||
|
Re: Help with Encoder
Can you give error outputs or describe what values you are getting from encoder.get()? your initialization of the encoder seems to be fine.
|
|
#3
|
|||
|
|||
|
Re: Help with Encoder
We don't get any erros and the output we get is 0 no matter how much we rotate the pole its attached too
|
|
#4
|
|||
|
|||
|
Re: Help with Encoder
Between the first two bits of code you need to have encoder.start() somewhere.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|