View Single Post
  #9   Spotlight this post!  
Unread 16-01-2008, 15:27
Vanquish Vanquish is offline
Registered User
no team
 
Join Date: Jan 2008
Rookie Year: 1980
Location: Somewhere
Posts: 19
Vanquish is an unknown quantity at this point
Re: Autonomous mode does not work

Quote:
while(rc_dig_in01)
{
if(pwm01==127)
{
pwm01=254;
pwm02=254;
}
else
{
pwm01=127;
pwm02=127;
}
}
/*
if(rc_dig_in02)
{

if(pwm01==127)
{
pwm01=0;
pwm02=254;
}
else
{
pwm01=127;
pwm02=127;
}

}
if(rc_dig_in03)
{

if(pwm01==127)
{
pwm01=254;
pwm02=0;
}
else
{
pwm01=127;
pwm02=127;
}

}

*/
When we uncomment the rest of this code we get a program error, an the program light on the RC turns red and nothing works. Any ideas?

p.s. i work with sunny