I'm working on a robot project using Lego NXT running the LeJOS API. I need to sum up the angles my robot makes. I found out there was a method getAngleIncrement()
that seems to be doing just so but I can't be sure. Here's all the documentation I've found:
Returns:
The angle rotated since rotation began.
But does it return all the angles since the beginning or just the angle of the rotation that is going on?
My robot needs to be aligned with other things and I used this
pilot.rotate(-90.0 - pilot.getAngleIncrement());
to make it rotate at the right angle.
Thanks!