Go to Post Ahhh... the beauty of an exponential series... - dtengineering [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
  #1   Spotlight this post!  
Unread 14-09-2008, 22:02
dpeterson3 dpeterson3 is offline
Registered User
FRC #1178 (DURT)
Team Role: Alumni
 
Join Date: Aug 2008
Rookie Year: 2008
Location: St. Louis
Posts: 158
dpeterson3 is a jewel in the roughdpeterson3 is a jewel in the roughdpeterson3 is a jewel in the roughdpeterson3 is a jewel in the rough
Relays code not compiling

I know new programmers really shouldn't play with Beta code, but I had to. I am trying to port last year's code to Kevin Watsons' new MCC18 3.0+ code. I called the Generate_Relay function like in the old code, and get this error.
Code:
MPLINK 4.21, Linker
Copyright (c) 2008 Microchip Technology Inc.
Error - could not find definition of symbol 'Generate_Relay' in file './drttest.o'.
Errors    : 1
Is there a Generate_Relay function in the new code or do I need to make one? I didn't see one in the old code, but I could have just missed it.
  #2   Spotlight this post!  
Unread 15-09-2008, 00:20
Qbranch Qbranch is offline
wow college goes fast.
AKA: Alex
FRC #1024 (Kil-A-Bytes)
Team Role: Alumni
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Indianapolis
Posts: 1,174
Qbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond repute
Re: Relays code not compiling

I don't remember there being a "Generate_Relay" function in the old base code. The Relay output pins have no muxes, etc. between them and the user processor, as far as I know they're actually directly tied to the processor's pins.

i.e. relay1_fwd = LATEbits.LATE0

You shouldn't have to call anything.

-q
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08
  #3   Spotlight this post!  
Unread 15-09-2008, 06:47
dpeterson3 dpeterson3 is offline
Registered User
FRC #1178 (DURT)
Team Role: Alumni
 
Join Date: Aug 2008
Rookie Year: 2008
Location: St. Louis
Posts: 158
dpeterson3 is a jewel in the roughdpeterson3 is a jewel in the roughdpeterson3 is a jewel in the roughdpeterson3 is a jewel in the rough
Re: Relays code not compiling

Thanks. I guess I missed it reading through last year's code. I read through all the user stuff. However, the original programmer did not bother commenting his code well. I will look again. It has to be there somewhere. At least I know it is not something standard. Now I have an idea of where to look.
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
Not Compiling popnbrown Programming 5 03-04-2008 14:55
ADC_CHO not compiling in Kevin's code Hazmatt Programming 2 13-02-2008 20:29
Compiling Robot code... greatman05 Programming 5 11-02-2008 21:50
Spike Relays...How Come they are not in the Inventor files D_Price Technical Discussion 2 28-01-2008 09:20
Using Relays in Code fred Programming 3 21-02-2004 19:29


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

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