Drive Edison Forward

Script adapted from [4 p. 10-12].

Note: The time distance unit is milliseconds, which means that to drive for 2 seconds, you need to set the distance input parameter to 2000 (since 2000 milliseconds = 2 seconds).

Practice

  • What constant did you have ‘Ed.DistanceUnits’ set to in the Setup code? Can you modify it and then modify your code accordingly?
  • Experiment with driving the Edison robot at different speeds. What does the robot do when you drive Edison at speed 10 versus speed 1? Do you notice any changes in the accuracy of Edison’s distance when it is driving at different speeds?