|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||||
|
|||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Code error causing robot to go into programming mode. | MJD | Programming | 14 | 30-10-2007 14:21 |
| FRC Camera code in YCrCb Mode? | Terry Sherman | Programming | 9 | 25-01-2006 16:43 |
| Where to insert code Autonomous mode | caderader | Programming | 5 | 18-02-2005 16:49 |
| Anybody have a code for an autonomous mode to go to the 50 point bar???? and... | chaoticprout | Programming | 9 | 06-11-2004 12:22 |
| Simple Autonomous Mode Example | deltacoder1020 | Programming | 5 | 08-03-2004 20:22 |