View Single Post
  #5   Spotlight this post!  
Unread 16-02-2008, 20:27
Shivang1923 Shivang1923 is offline
I make robot go VROOM VROOM!
FRC #1923 (MidKnight Inventors)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2008
Location: West Windsor, NJ
Posts: 38
Shivang1923 has a spectacular aura aboutShivang1923 has a spectacular aura about
Re: Programing IR board problem

so i would do this?

Code:
case 1:
                counter = 0;
		if (counter <= 50)
		{
			pwm01 = pwm02 = 255;
			counter++;
		}
		else
		{
			pwm01 = pwm02 = 127;
		}
	    break;