Thread: Code problems
View Single Post
  #9   Spotlight this post!  
Unread 15-02-2005, 15:56
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Code problems

Quote:
Originally Posted by doyler
why would this give me a syntax error?

Code:
if (SPEED_SETTING < 128 || speed_control > 254) 	//Check speed_setting for valid forward speed
	SPEED_SETTING = 150; 						//If not valid number set to default
Don't you mean SPEED_SETTING > 254 instead of speed_control?

<EDIT>Disregard this post...don't know what I was thinking, but this won't help at all </EDIT>

Last edited by Dave Scheck : 15-02-2005 at 16:12.