Thread: Code problems
View Single Post
  #6   Spotlight this post!  
Unread 15-02-2005, 15:47
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
When i tried to put
#define STEERING_COMP 30 //steering compenstation (0 to 127)
#define SPEED_SETTING 150 //forward speed setting (127 to 254)

in user_routines.h I was getting compiler errors that steering_comp wasn't defined
You also need to update your user_routines.c to replace all instances steering_comp with STEERING_COMP. C is case sensitive so they are not the same. By most conventions, constants are in all capitals so that they stand out.