![]() |
Functional encoder returning 0
We have three US Digital quad encoders on our robot this year. We've implemented the fake encoder workaround for GetRate(), and the two encoders that we need to get rate out of are working fine, but the third, which we only need distance out of, never registers any change. The following code contains the contructors for all of our encoders:
Code:
fakeEncoderA = new Encoder(6,1,6,2,false, fakeEncoderA->k4X); |
Re: Functional encoder returning 0
Did you run Encoder->Start() before you try to get values? That's tripped me up before.
|
Re: Functional encoder returning 0
Well, that's embarassing. :P So, the lift encoder is now reading, but is there any insight on why I can't run more than four 2X encoders?
|
Re: Functional encoder returning 0
The wpi library user's guide talks about how there are only 4 modules in the FPGA on the CRIO that can run more 4x encodings, and they are probbly used to run 2x if you specify that mode.
|
| All times are GMT -5. The time now is 17:48. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi