переименована переменная для хранения обратного скачка напряжения
PeakVoltage >ReversePeakVoltage
This commit is contained in:
parent
b0c9cb058c
commit
0cba8cda8a
@ -38,7 +38,7 @@
|
||||
typedef struct //MB_DataInRegsTypeDef
|
||||
{
|
||||
uint16_t ForwardVoltage;
|
||||
uint16_t PeakVoltage;
|
||||
uint16_t ReversePeakVoltage;
|
||||
}MB_DataInRegsTypeDef;
|
||||
|
||||
|
||||
|
@ -85,7 +85,7 @@ void TESTER_TestDiode_Reverse(TESTER_TestHandleTypeDef *htest)
|
||||
|
||||
TESTER_LED_WaitForAction(&htest->leds->LED1);
|
||||
|
||||
htest->DiodePeakVolt = htest->adc->chAdc.U_Current;
|
||||
htest->DiodeReversePeakVolt = htest->adc->chAdc.U_Current;
|
||||
}
|
||||
|
||||
|
||||
@ -121,7 +121,7 @@ void TESTER_TestDiode_SwitchConnection(TESTER_TestHandleTypeDef *htest)
|
||||
|
||||
TESTER_LED_WaitForAction(&htest->leds->LED1);
|
||||
|
||||
htest->DiodePeakVolt = htest->adc->chAdc.U_Current;
|
||||
htest->DiodeReversePeakVolt = htest->adc->chAdc.U_Current;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -67,7 +67,7 @@ typedef struct
|
||||
uint32_t continuous_buff_size;
|
||||
|
||||
float DiodeForwardVolt;
|
||||
float DiodePeakVolt;
|
||||
float DiodeReversePeakVolt;
|
||||
|
||||
TESTER_LEDsTypeDef *leds;
|
||||
}TESTER_TestHandleTypeDef;
|
||||
|
@ -14,7 +14,7 @@ void TESTER_Init(TESTER_ProjectTypeDef *tester)
|
||||
|
||||
tester->delay = 250;
|
||||
tester->delay_en = 0;
|
||||
|
||||
tester->htest->adc->chAdc.s
|
||||
tester->func.disable_reset_call = 0;
|
||||
tester->htest = &hTestDiode;
|
||||
TESTER_HandleInit(tester->htest, &tester->leds);
|
||||
@ -56,7 +56,7 @@ void TESTER_main_while(TESTER_ProjectTypeDef *tester)
|
||||
TESTER_TestDiode_Reverse(tester->htest);
|
||||
|
||||
/* Запись данных в modbus */
|
||||
tester->mbdata->InRegs.PeakVoltage = tester->htest->DiodePeakVolt*1000;
|
||||
tester->mbdata->InRegs.ReversePeakVoltage = tester->htest->DiodeReversePeakVolt*1000;
|
||||
|
||||
if(tester->func.disable_reset_call == 0)
|
||||
tester->func.test_diode_reverse = 0;
|
||||
@ -85,7 +85,7 @@ void TESTER_main_while(TESTER_ProjectTypeDef *tester)
|
||||
TESTER_TestDiode_SwitchConnection(tester->htest);
|
||||
|
||||
/* Запись данных в modbus */
|
||||
tester->mbdata->InRegs.PeakVoltage = tester->htest->DiodePeakVolt*1000;
|
||||
tester->mbdata->InRegs.ReversePeakVoltage = tester->htest->DiodeReversePeakVolt*1000;
|
||||
tester->mbdata->InRegs.ForwardVoltage = tester->htest->DiodeForwardVolt*1000;
|
||||
|
||||
if(tester->func.disable_reset_call == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user