Hi,
Is there a Lejos class that uses NXT Motor as a rotation sensor? I havn't found one and as an exercise trying to add one.
NXT-G has it react based on angle test like > 45 degrees then returns true.
I am using an EncoderPort and setting motor power to 0 and coast.
But I am not sure about the listener part... especially how to know when the motor has started /stopped moving (because a user has turned it). Looks like it should be an interrupt, but not sure how to set this up.
Thanks for any hints
