Make Edison Turn Using Variables

Script adapted from [4 pp. 23-24]

Practice

  • Write the program from the video, then download and run the program with your Edison. What does Edison do and why?
  • Add a new line to the end of your program (after line 13) and add the following code to your program: Ed.Drive(Ed.SPIN_LEFT,Ed.SPEED_6,degreesToTurn). Download and run the program. What does Edison do?.
  • What happens when you change the value of your variable from 90 to 180?