I am getting started with leJos and got this problem today (sorry if this is too obvious, I googled and searched on this forum for a while and couldn't find a solution) when I tried the sample project where you rotate Motor.A for 1440 degrees and at the same time read the tacho count.
I had the problem with Motor.A coz it keeps rotating forever and the tacho count is always 1, 0 or -1. I tried to use Motor.B and it works fine. I tried connecting the original motor A (physical) to port B and it works fine also. So I know it is not the motor, not the cable, and I'm wondering if it is about how port A behaves (or am I missing anything?)
Thanks for the help!