Inconsistent Virtual Worlds
I am just beginning the Summer of Learning Robotics course and am trying to complete the Labrynth and Robo 500 challenges. I am having trouble with the Virtual Worlds program being consistent. After I found a time value that made the robot turn exactly 90 degrees, I moved on and continued with the rest of the program. To my dismay, I discovered that the robot now turned to much, even though I hadn't done anything to that part of the code. I tried to correct, but every time I thought I had fixed it, the robot would over or under turn again. I also had problems with moving straight a consistent amount. When keeping the same time value, it would move forward to little or too much.
I have discovered that if I don't close the Virtual Worlds program between code changes, the drastic over and under turns weren't near as pronounced, although they were still there.
Here is the code for Robo 500 Challenge...