Go to Post Given the time Banebots has already cost us, what's a little snow? - pfreivald [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 22-01-2008, 12:05
epl692's Avatar
epl692 epl692 is offline
all roads lead to citys.
AKA: Eric L
FRC #0107 (R.O.B.O.T.I.C.S.)
Team Role: Programmer
 
Join Date: Aug 2006
Rookie Year: 2006
Location: Holland Mi
Posts: 4
epl692 is an unknown quantity at this point
Send a message via MSN to epl692
ADC code errors

I have been trying to compile the code for this year (gyro) and have been running into a strange error during the compile that says that the ADC voltage variables are not set, could anyone help me make the correct modifications to ether our build environment or the code itself to get it to compile?
__________________

  #2   Spotlight this post!  
Unread 22-01-2008, 12:52
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: ADC code errors

Do you mean like:
ADC_VREFPLUS_VDD and ADC_VREFMINUS_VSS ?

If that's what you're talking about then there are two solutions to this problem with the student version 3.15 of the compiler:

-- Fix the 3.15 version of the adc.h system file. There is a missing "#endif" at line 536. It does a series of PIC architecture checks and they forgot to close one conditional #if, thereby wiping out all the subsequent statements.

or

-- You can comment out the code that uses those macros.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 22-01-2008, 12:56
epl692's Avatar
epl692 epl692 is offline
all roads lead to citys.
AKA: Eric L
FRC #0107 (R.O.B.O.T.I.C.S.)
Team Role: Programmer
 
Join Date: Aug 2006
Rookie Year: 2006
Location: Holland Mi
Posts: 4
epl692 is an unknown quantity at this point
Send a message via MSN to epl692
Re: ADC code errors

yes, that was the error, thank you, il get to updating our code when next i get a chance to.
__________________

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
Timers causing code errors? Uberbots Programming 6 22-01-2008 02:10
Problems when combine ADC code && camera code nirhaim1942 Programming 1 24-01-2007 06:58
ADC code effecting motor outs??? Kyveck Programming 16 28-03-2006 15:12
adc code problem railerobotics Programming 6 24-01-2006 22:26
problems using gyro/adc code with camera default code tanstaafl Programming 7 22-01-2006 23:09


All times are GMT -5. The time now is 23:12.

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