![]() |
code example to set 4x encoder decoding mode mode
Hello,
Now with the third update the 4x mode encoder decoding should be working, I have been testing our robot encoders and it sems that the default constructor, which by default should select 4x is using 1x mode after comparing the counts with the distance i am using this code to create the encoders: m_baseLeftWheelEnc = new Encoder(1, 2, false); m_baseLeftWheelEnc->Encoder::Start(); m_baseRightWheelEnc = new Encoder(3, 4, true); m_baseRightWheelEnc->Encoder::Start(); Could you post an example of 4x encoders configuration code Thanks |
Re: code example to set 4x encoder decoding mode mode
Workbench Update 3 now normalizes the returned distance from an Encoder::Get() or Encoder::GetDistance() call. So 1X, 2X, 4X doesn't effect the magnitude of the result, only the resolution. You can use GetRaw() if you want the unnormalized result for some reason.
Thus I believe your encoders are really configured in 4X mode, but you are reading the normalized results. |
| All times are GMT -5. The time now is 10:54 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi