![]() |
WPILibJ Encoder getRate() bug?
Is it just me or should the getRate() method for encoders be dividing the rate by the encoding type? getDistance() seems to return the correct distance based on the encoding type, but when we accessed getRate() for the same encoder(4x) we got 4 times the rate we were expecting.
It seems to me that the distance configuration shouldn't need changed based on reading rate vs. distance. Code:
/** |
Re: WPILibJ Encoder getRate() bug?
Late in beta we tested the rate in 1x, 2x, and 4x modes to verify the same rate was returned in all 3 modes and that it seemed reasonable in magnitude. It's possible something broke since then.
I think the scaling is done deeper in the library. |
Re: WPILibJ Encoder getRate() bug?
Quote:
|
| All times are GMT -5. The time now is 22:26. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi