Is there a good motif people use to say the movement is done, or is it the same kind of thing I am doing here? I also tried using the duty cycle but that does not quite go to zero at the end of the move.
I have not yet tuned the motor away from defaults, beyond inverting the P, I, D values...
Almost what I am looking for is:
Code: Select all
mpc.setEngaged(True)
mpc.setTargetPosition(target)
while mpc.isBusy():
time.sleep(0.1)
Code: Select all
mpc.isBusy()