|
Re: Using While Statements
The robot will freeze because the loop interferes with the default 26 ms loop of the robot, causing the code error. As the robot's running its normal loop anyways, you should just be able to use an if statement, as the PWM value will last until the next refresh, and the condition will be re-evaluated.
|