View Single Post
  #2   Spotlight this post!  
Unread 03-02-2008, 09:52
Lakeeffect1674 Lakeeffect1674 is offline
Registered User
FRC #1674
 
Join Date: Jan 2007
Location: Onekama, Michigan
Posts: 18
Lakeeffect1674 is an unknown quantity at this point
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.