|
Encoder problem
We're having some problems coding our traction control. We have traced it back to an issue with the encoders.
Our robot has 7 encoders on it. 1 encoder on each wheel, 1 on our idler wheel, and 1 each on our front and rear steering.
The issue we're having is 4 of the encoders are all changing together when you turn a specific one of the 4.
I'm not sure if this is an issue with the Encoder class, or what
We're coding in C++ using windriver.
Is there like a 4 encoder limitation or something? I ask because it is like the 5th, 6th, and 7th encoders are actually replacing the reference to the 1st encoder, and then the 1,5,6,7 encoders are all referencing to the same place in memory, and are changing with the ports from the 7th encoder. Changing the ports associated with 1, 5, and 6 doesnt increase the count, but changing the 7th set of ports is causing the numbers on all 4 (1,5,6,7) to change.
|