|
Re: Failing analog inputs?
Make sure you do Get_Analog_Value(rc_ana_in01);
rc_ana_inxx are just the channels on the ADC, not the actual value. Get_Analog_Value() takes an ADC channel and returns the (10-bit) value on that channel.
We just modified the #defines for all the rc_ana_inxx to include the function call.
#define rc_ana_in01 Get_Analog_Value(ADC_CH0)
|