Thread: Compile failure
View Single Post
  #3   Spotlight this post!  
Unread 05-02-2008, 22:54
darkChozo darkChozo is offline
Some guy
no team
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: a
Posts: 10
darkChozo is an unknown quantity at this point
Re: Compile failure

Doing a Build All doesn't change anything; the error still appears.

All I added was the following after the #defines for OPEN and CLOSE. They're all used in user_routines.c:

Code:
#define PI               3.14159265    // Defines pi for use in converting radians to degrees & vice versa
#define LENGTH     34    // Defines the distace between wheels along the length of the robot in inches
#define WIDTH      21    // Defines the distace between wheels along the width of the robot in inches
#define MAX_DEFLECTION   0.78539814    // Defines the maximum angle at which the robot will turn (measured at the near wheel to the turn) in radians
#define MAX_DIFFERENTIAL 64    //Defines the maximum value by which motors will slow for differential turning. Uses 8-bit value (ie. 55 means that a value of 255 will become 200, 0 will become 55)
#define PWM_NEUTRAL      2     //Defines the range at which a pwm value is considered neutral (127). (note: value of 6 will result in range of 121-133)


#define potentiometer_left   rc_ana_in01 //potentiometer on right motor
#define potentiometer_right  rc_ana_in02 //potentiometer on left motor
So far as I can see, I didn't add anything else accidentally.

Also, note the edit in my last post.