Thread: Code problems
View Single Post
  #9   Spotlight this post!  
Unread 15-02-2005, 15:58
AIBob's Avatar
AIBob AIBob is offline
AI Programmer
AKA: Bob Frank DOT org
FRC #0358 (Hauppauge Robotic Eagles)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Long Island, NY (in Binghamton now)
Posts: 297
AIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to behold
Send a message via ICQ to AIBob Send a message via AIM to AIBob Send a message via MSN to AIBob Send a message via Yahoo to AIBob
Re: Code problems

Code:
#define SPEED_SETTING 150 //forward speed setting (127 to 254)
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
You defined SPEED_SETTING as a constant, I believe you can not set a defined constant after you are running the code, also as noted by someone else before, C is case sensative.

Errors in your code I marked in red.
__________________
- from B B frank


Last edited by AIBob : 15-02-2005 at 16:04.