View Single Post
  #178   Spotlight this post!  
Unread 12-01-2008, 12:14
NetElemental's Avatar
NetElemental NetElemental is offline
Registered User
AKA: James E.
FRC #0418 (Purple Haze)
Team Role: Programmer
 
Join Date: Nov 2007
Rookie Year: 2008
Location: Austin, TX
Posts: 4
NetElemental is an unknown quantity at this point
Re: New C18 3.0+ Compatible FRC Code

Kevin, First of all thanks, this will be a great help.

Our team has a 2005 robot controller and operator interface mounted to a board for testing purposes when it is not practical to use the current robot controller (e.g., the current controller is on the robot, and the robot is being built or modified). We swapped out the libraries and linker files for the ones corresponding to the PIC18F8520, changed the target to the 8520, and tried to compile. We got this error(in your ifi_frc_gyro code, if it's relevant):
Code:
C:\Users\NetElemental\Documents\Code\ifi_frc_gyro\ifi_code.c:33:Error [1105] symbol 'ifi_analog_channels' has not been defined
inaccuracy

The line code corresponds to
Code:
29  #if defined(__18F8722)
30    OpenADC( ADC_FOSC_RC & ADC_RIGHT_JUST & ADC_0_TAD,
31             ADC_channel & ADC_INT_OFF & ADC_VREFPLUS_VDD & ADC_VREFMINUS_VSS,15);
32  #else
33    OpenADC( ADC_FOSC_RC & ADC_RIGHT_JUST & ifi_analog_channels,
34            ADC_channel & ADC_INT_OFF & ADC_VREFPLUS_VDD & ADC_VREFMINUS_VSS );
35  #endif
Any ideas? We couldn't find ifi_analog_channels in either .lib file. What would your suggestion be?

Thanks,
James

Last edited by NetElemental : 12-01-2008 at 12:18. Reason: Inaccuracy