Click the green flag to start the application. After starting, you may adjust either the speed or the number of degrees the robot turns to correct.. The robot follows the line and shows her trail with a green line. At the same time, she is recording her positions, which allows the path to be analyzed for errors. Following the line is not very fast in tight corners, so you are looking for the best combination of the two parameters. For understanding the mechanics behind the line following see https://scratch.mit.edu/projects/190530184 The "Run Course" button causes the robot to run all three of the courses and record the elapsed time. the "Show Error" button shows the total distance the robot has been over the course of the run and the mean error is the mean or average of each error. It also displays the number of times the robot wanders "off the track." You should try to minimize these, which will improved your elapsed time. V2 introduces the ability to "tune" several parameters to help improve on your overall elapsed time. The "All 3" option runs the robot over all three courses, computing the total elapsed time. In progress - there is another sprite which calculates the error for each way-point and computes the mean error.
This project is intended to demonstrate a scientific approach to continuous improvement. I suggest a systematic approach to changing the speed and degrees so you can determine which has more contribution to improvement. There are rather severe limitations on speed; if the robot takes too many steps, it runs off the line for which there is a 0.5 second penalty to recover, so be careful with speed! Further efforts should include a linear regression to find out the contribution of each.