Quote:
Originally Posted by nathanww
Each encoder's A and B outputs are wired to the signal in on the digital sidecar. We also use the power and ground on one PWM for those connections on the encoder
|
The encoder has four connections. Can you detail precisely where each of those connections is going? I hope you aren't really using PWM outputs for power.
How do you know the robot isn't reading the encoder properly?
Quote:
Code:
printf("encoder1=%d",encoder1->Get());
|
I didn't use C++ this season, and I don't have the documentation handy, so I don't know if
%d is what you want. Doesn't the Get() method return a long integer?