Quote:
Originally Posted by virtuald
if you're in a loop waiting for some switch or condition to change without doing anything else... you're probably doing it wrong.
|
But it made the autonomous code so simple. And it worked great ... until the mechanism broke down.
I could do:
Code:
while not throwerToReady():
Wait(0.01)
throw():
If you have to go through the whole loop each time, you must have to create some kind of state machine.
By tooling Wait to watch for mode changes the simple style could work.