Go to Post ...SEARCH BEFORE YOU POST, and when you do post think twice before pressing the 'post' button. - Brandon Martus [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 02-02-2008, 15:15
psy_wombats's Avatar
psy_wombats psy_wombats is offline
Registered User
AKA: A. King
FRC #0467 (Duct Tape Bandits)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Shrewsbury MA
Posts: 95
psy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura about
Re: Default Code error?

So this compiles correctly without printfs? Or has it never worked correctly? If it has been built successfully at some point, what edit exactly caused the error?
  #17   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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in code light on, trouble finding error Bryan Herbst Programming 16 12-10-2007 21:59
Problems integrating CMUCAM code and IFI Default Code Windward Programming 2 06-02-2007 16:48
problems using gyro/adc code with camera default code tanstaafl Programming 7 22-01-2006 23:09
user code to default code phoenixomega001 Programming 5 09-01-2005 00:09
Inserting Naviagation code into Default code? actorindp Programming 3 28-01-2004 18:12


All times are GMT -5. The time now is 19:07.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi