Elite 1.4-re RT mode
This commit is contained in:
+1
-15
@@ -298,21 +298,7 @@ static int32_t DecodeADCVolt(uint16_t ADC_measure){
|
||||
// unit should be pA
|
||||
static int32_t DecodeADCCurrent(uint8_t ADCGain, uint16_t ADC_measure){
|
||||
long long ADCRealCurrent = 0;
|
||||
if(INSTRUCTION.ADCGainLevel == GAIN_200K){
|
||||
LED_color(DARKLED, 0xFF, 0x00, 0x00);
|
||||
}
|
||||
else if(INSTRUCTION.ADCGainLevel == GAIN_10K){
|
||||
LED_color(DARKLED, 0xFF, 0x00, 0xFF);
|
||||
}
|
||||
else if(INSTRUCTION.ADCGainLevel == GAIN_200R){
|
||||
LED_color(DARKLED, 0xFF, 0xFF, 0x00);
|
||||
}
|
||||
else{
|
||||
LED_color(DARKLED, 0xFF, 0xFF, 0xFF);
|
||||
}
|
||||
if(INSTRUCTION.ADCGainLevel != ADCGain){
|
||||
LED_color(DARKLED, 0xFF, 0xFF, 0xFF);
|
||||
}
|
||||
|
||||
ADCRealCurrent = (Correction.ADC_current[ADCGain].coeff * ADC_measure + Correction.ADC_current[ADCGain].offset)/1e7;
|
||||
|
||||
// Current unit is pA;
|
||||
|
||||
+2
-2
@@ -834,8 +834,8 @@ static void update_ZM_instruction(uint8 *ins) {
|
||||
case VOLT_OUTPUT: {
|
||||
INSTRUCTION.eliteFxn = VOLT_OUTPUT;
|
||||
INSTRUCTION.VoltConstant = ( ((uint16_t)(ins[3])) << 8) | (uint16_t)(ins[4]);
|
||||
// DAC_outputV(Usercode_Correction_to_DAC(INSTRUCTION.VoltConstant));
|
||||
DAC_outputV(INSTRUCTION.VoltConstant);
|
||||
DAC_outputV(Usercode_Correction_to_DAC(INSTRUCTION.VoltConstant));
|
||||
// DAC_outputV(INSTRUCTION.VoltConstant);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user