View Single Post
  #1   Spotlight this post!  
Unread 02-02-2009, 12:29 AM
fdelagarza fdelagarza is offline
Registered User
FRC #2122
 
Join Date: Jan 2009
Location: Boise, ID
Posts: 1
fdelagarza is an unknown quantity at this point
Smile 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
Reply With Quote