Quote:
|
Originally Posted by stephenthe1
actually, our encoder does work, it's just a matter of finding if the code works or not. if not, then there is an encoder problem. however, I checked the wiring. I heard there's a way to see every time it clicks on the laptop. how's this done? also, yes, I've gone over the read me.
|
Here's what I would do to verify that your encoder is working: In the routine where you are controlling the arm, add the following code:
Code:
int tempEncoder;
static int prevEncoder = 0;
...
tempEncoder = Get_Left_Encoder_Count();
if (tempEncoder != prevEncoder) {
printf("%d ", tempEncoder);
prevEncoder = tempEncoder;
}