Quote:
|
Originally Posted by thinkpad
Is there a way to see the readings of the encoder counts in the PID files, i tried adding in printf statements in the PID.c file where the encoder count values are being called:
[...]
but this just prints out the values of Right count: 0 and Left count: 0. Can anyone tell why this can be?
|
The most likely reason is that the values really are zero. That would happen if your encoders aren't being processed correctly. How do you have the Grayhill encoders wired? Have you added code that disables the interrupts on their digital input pins?
Earlier you said that the encoders work when you're not also using the gyro. How did you determine this?