I am trying to build a robot which goes a certain distance ie. anywhere from 5 to 10 m in 0.1 m intervals.
I have a completely built robot with an optical encoder and laptop.
How do I go about doing this? - I will have the change this distance frequently
like for example if I’m told I have to go 5.9 m - I would quickly upload this code to the robot and then make it go 5.9 m (ALL autonomously - no remote control’s allowed)