View Single Post
  #2   Spotlight this post!  
Unread 19-03-2004, 10:18
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Need help with my code

Quote:
Originally Posted by jaywion
I need help with my code, its not working so far in Autonomous mode. We didn't have one at Reginals and want one for nationals please tell me whats wrong with my code.
What is it supposed to do? I noticed one odd thing right away:
Code:
		if(tickCount >= SECS_TO_TICKS(1))
		{
			AUTO_STATE = AUTO_FINISHED; //AUTO_SECOND_STATE;
			tickCount = 0;
		}
Is it really supposed to go to the AUTO_FINISHED state after one second, or did you mean for it to go to AUTO_SECOND_STATE instead?

(If you surround your code with [code] and [/code] tags when you post it here, the whitespace formatting will be preserved.)