|
Re: Another Loader Error
this is what happens when you take out all the commented out code. this is all that the compiler/robot sees:
Quote:
/************************************************** *****************************
*
TITLE: 399Auto.c
*
* VERSION: 0.1 (Beta)
*
* DATE: 04-Oct-2005
*
* AUTHOR: Semicolon
*
* COMMENTS: Hello!
*
************************************************** ******************************
*
* CHANGE LOG:
*
* DATE REV DESCRIPTION
* ----------- --- ----------------------------------------------------------
* Nothing
*
************************************************** *****************************/
//--Header Files--\\
#include <stdio.h>
#include <math.h>
#include "ifi_aliases.h"
#include "ifi_default.h"
#include "ifi_utilities.h"
#include "user_routines.h"
//#include "user_Serialdrv.h"
#include "399code.h"
#include "399Auto.h"
#include "tracking.h"
#include "camera.h"
#define AUTOSPEED 50
#define AUTOFWD 127+AUTOSPEED
#define AUTOBK 127-AUTOSPEED
#define MOTORSTEP 1
extern int motor01accel;
extern int motor02accel;
extern int AutoState;
extern int Centering;
int RobotTime = 0;
extern int Alarm;
extern int cent;
extern int dista;
extern int motor03;
extern int motor04;
extern int motor01;
extern int motor02;
/************************************************** *****************************
* FUNCTION NAME: dip_switch
* PURPOSE: turn dip switches to #s 1-4
* CALLED FROM:
* ARGUMENTS: void
* RETURNS:
* Switches Outcomes
* ----------- -----------
* 0 0 1
* 1 0 2
* 0 1 3
* 1 1 4
* NOTES: I don't care
************************************************** *****************************/
int dip_switch(void)
{
int dip;
dip = (4*digital_io_01) + (2*digital_io_02) + digital_io_03;
return dip;
}
|
i wonder why nothing works? you've got..... what, 20 lines of code that actually are read? if i missed a close comment or something, just tell me, but i think i didn't take out any used code.
__________________
/*Nerd Camouflage*/
2005 SVR - 668+1072+840 - Semifinalists.
2006 SVR - 668+1280+1693 - Finalists.
2007 SVR - 668+604+624 - Quarter-finalists, Xerox Creativity Award, two highest scores (290-2, 128-0) at SVR.
2007 Nat's - TBA.
|