View Single Post
  #23   Spotlight this post!  
Unread 17-02-2006, 12:43
lupjohn's Avatar
lupjohn lupjohn is offline
Registered User
AKA: Larry Upjohn
FRC #0692 (FemBots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2002
Location: Sacramento, CA
Posts: 31
lupjohn is an unknown quantity at this point
Re: eclipse & Kevin's camera code

Quote:
Originally Posted by prograid
Can you post the code you're using? The default version of ifi_utilities.c doesn't seem to have a line 233.
The code is found on Kevin Watson's site here http://kevin.org/frc/ . I discovered the error was related to which processor was called out and I had it set on the old 2005 processor. ADC.h calls for 3 parameters for the function openadc() for the old processor and 2 parameters for the new processor as called for in the latest code from Kevin. Kevin also provides an example program called ADC.c and reading through that code I discovered that the openadc() call had 3 parameters. Simply adding the 3rd parameter in the call to openadc() in camera.c code allows a full build without errors. The interesting part about this problem is that the same original code as supplied from Kevin compiles in the MPLAB IDE without error or warnings. This tells me that the Eclipse environment may be use a more concise preprocessor to parse the code and thus catch this level of error. Thanks for your response. I just needed some time to work through this and I am a little fuzzy from the late nights on the build. LRU.