Thread: how do you...
View Single Post
  #9   Spotlight this post!  
Unread 25-01-2004, 05:43
echos's Avatar
echos echos is offline
Jack of all trades
#1125
Team Role: Programmer
 
Join Date: Dec 2003
Location: San Diego, CA
Posts: 61
echos will become famous soon enough
Send a message via ICQ to echos Send a message via AIM to echos Send a message via MSN to echos Send a message via Yahoo to echos
Re: how do you...

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++;
 	}
__________________

Entity Hosting Staff
http://www.entityhosting.com/