|
Re: Default Code error?
WE FIXED IT!!!!
Thanks everyone for your help.
We didn't know where to put the Default_Routines(); but as you will see we found it was already there and in the right place.
If this is happening to anyone else here is what we did:
1) in MPLAB under build options we have:
-set our output directory
-include in search path= "c:\mcc18\h"
-Library searchpath ="c:\mcc18\lib"
-linker skript="c:\mc18\lkr"
2) in Kevins code in the file "teleop.c"
Make sure to find where it says:
void Teleop(void)
{
// enable this to use IFI's default robot code
//Default_Routine(); // located in ifi_code.c
// update the state of the LEDs on the operator interface
Update_OI_LEDs(); // located in ifi_code.c
}
and uncomment Default_Routine();
Thats all we had to do to get it to run the driving code.
|