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?
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.
yes, that was the error, thank you, il get to updating our code when next i get a chance to.