To command the ev3 robot to travel a distance one needs to convert distance units to motor rotation units. This can be done with trial and error, special calculations or just teach the robot to figure it out!
Step 1: Assumptions
we also assume there is a forward facing range finding sensor. usually this is the infrared or ultrasound sensor.
Step 2: Algorithms
Step 3: Keep It Safe
variables are global in the ev3 environment but they are not persistent. instead we must write our useful number to a file saved onto the brick.
one time saving trick is to use a variable but initialize it from a single read operation, instead of constantly reopening the file.
Step 4: Done
*add video of robot running a distance then change wheels and calibrate for the same distance.