View Single Post
  #4   Spotlight this post!  
Unread 02-11-2006, 07:59
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,756
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: !HELP! IM STUCK IN A SUBROUTINE!!! !HELP!

After you get past the "Left();" problem, "time" will eventually wrap around to 0 and start all over again depending on how you've declared it.

I vote with Mike. It seems like "time" could easily be a local variable and thus always be 0. If you remove the "=" from "if (time >= 0 && time < 50)" it would probably not even do "Left()".

P.S.
It's 38 loops per second (26.2 milliseconds per loop) on the FRC.
Why didn't you choose to call Stop() at the end?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-11-2006 at 10:12.