Thread: Wait() issue
View Single Post
  #2   Spotlight this post!  
Unread 12-02-2013, 11:39
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,062
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Wait() issue

Quote:
Originally Posted by mrklempae View Post
We're having trouble with out robot losing control every time Wait() is used.
This is a classic problem that new teams (or programmers) struggle with every season.

You need to either

a) use a state machine, or

b) put your wait code in a separate thread where it can run concurrently.


Here's a generic explanation of state machine.



Last edited by Ether : 12-02-2013 at 11:54. Reason: added link
Reply With Quote