test IV current
This commit is contained in:
+3
-3
@@ -203,13 +203,13 @@ static int32_t DecodeADCValue(uint8_t ADCGain, uint8_t ADCChannel, uint8_t *ADC_
|
||||
else if(ADCChannel == ADC_CH_CURRENT){
|
||||
|
||||
if (INSTRUCTION.eliteFxn == IVCurve) {
|
||||
ADCRealCurrent_long += 0x0e00;
|
||||
ADCRealCurrent_long += DecodeADCCurrent(ADCGain, ADC_measure);
|
||||
ADCRealCurrent_long += 0xe000;
|
||||
// ADCRealCurrent_long += DecodeADCCurrent(ADCGain, ADC_measure);
|
||||
// ADCRealCurrent_long += DecodeADCCurrent(ADCGain, ADC_measure);
|
||||
// avg_number++;
|
||||
|
||||
if (StepTimeCounter == StepTime) {
|
||||
// ADCRealCurrent_long = ADCRealCurrent_long / avg_number;
|
||||
ADCRealCurrent_long = ADCRealCurrent_long / 2;
|
||||
NotifyCurrent[0] = (uint8_t) (ADCRealCurrent_long >> 24);
|
||||
NotifyCurrent[1] = (uint8_t) ((ADCRealCurrent_long & 0x00FF0000) >> 16);
|
||||
NotifyCurrent[2] = (uint8_t) ((ADCRealCurrent_long & 0x0000FF00) >> 8);
|
||||
|
||||
Reference in New Issue
Block a user