I am using arduino pololu maestro library to control my servos it seems all the commands are working great except getMovingStatus() command.
like this on arduino
maestro.setSpeed(1, 10); maestro.setTarget(1, 4000); int x = maestro.getMovingState(); Serial.println();
before running above code i always set servo to the highest position then run the above code so that it can replicate travelling of servo and give me required moving status.
its always returning 1 sometimes 0 and 192 randomly but mostly 1…even when it reaches the target position it gives 1 and some random 0 and 192 …i couldn’t figure out this random behaviour…please solve the issue