View Single Post
  #3   Spotlight this post!  
Unread 05-01-2004, 23:44
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Simple Syntax Error

Quote:
Originally Posted by miketwalker
Code:
if (rc_dig_in01)
{
Autonomous_1();
}
else
{
Autonomous_2();
}

void Autonomous_1()
{
pwm01 = 254;
pwm02 = 254;
}

void Autonomous_2()
{
pwm01 = 127;
pwm02 = 127;
}
Is that the code exactly as it appears in your file? If so, why isn't the IF statement inside a function?