The Turning Constant

In meeting with Chandima, he saw that a discrete pattern existed in the amount of degrees the robot must turn to coincide with the amount of degrees the user typed into the textbox. As such, he provided me with a method to determine the decimal number the degrees the user types in should be multiplied by. In figuring out this constant, I was able to completely eliminate the if/then statement I had written. Overall, this little suggestion made the code much cleaner, easier to follow, and more efficient.

Leave a Comment