Thread: how do you...
View Single Post
  #13   Spotlight this post!  
Unread 26-01-2004, 20:38
Rorschach's Avatar
Rorschach Rorschach is offline
2068 Mentor
AKA: Matt
FRC #2068 (Metal Jackets)
Team Role: Mentor
 
Join Date: Sep 2003
Rookie Year: 2002
Location: Staten Island
Posts: 4
Rorschach is an unknown quantity at this point
Send a message via AIM to Rorschach
Re: how do you...

Quote:
Originally Posted by echos
here is some rather straight forward code, simular to previous years stuff.

Code:
 unsigned int counter;
 
 if(autonmous_code)
 	{
 	if(counter <= 20)
 		{
 		pwm01 = pwm02 = 255;
 		}
 
 	  else if(counter >= 21 && counter <= 100 && counter != 99)
 		{
 		pwm01 = 255;
 		pwm02 = (pwm01 -= 254);
 		}
 	  else
 		{
 		die(void);
 		}
 
 	counter++;
 	}
I know this may sound rudimentary, but where is <i>die(void)</i>, is that the function that the routine is within?