View Single Post
  #7   Spotlight this post!  
Unread 15-02-2010, 14:20
Omar's Avatar
Omar Omar is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Huntsville, AL
Posts: 122
Omar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of light
Re: Timing functions

Quote:
Originally Posted by grosh View Post
Ben Zimmer stated that timed waits can slow down your code.
That is correct!
You do not want to place a wait inside your telop loop because it will slow down you loop by the amount of the wait. The code in your telop loop needs to get what it has to do fast and loop back around or your robot will not respond to joystick commands or other inputs.

If you have a wait for 2sec while your motor spins then for that 2 sec your joysticks will seem to be DEAD!

Ben Zimmer addresses this with his example of a stop time.
__________________
Omar
Reply With Quote