переименована переменная для хранения обратного скачка напряжения

PeakVoltage >ReversePeakVoltage
This commit is contained in:
Razvalyaev 2024-12-23 14:16:33 +03:00
parent b0c9cb058c
commit 0cba8cda8a
4 changed files with 7 additions and 7 deletions

View File

@ -38,7 +38,7 @@
typedef struct //MB_DataInRegsTypeDef typedef struct //MB_DataInRegsTypeDef
{ {
uint16_t ForwardVoltage; uint16_t ForwardVoltage;
uint16_t PeakVoltage; uint16_t ReversePeakVoltage;
}MB_DataInRegsTypeDef; }MB_DataInRegsTypeDef;

View File

@ -85,7 +85,7 @@ void TESTER_TestDiode_Reverse(TESTER_TestHandleTypeDef *htest)
TESTER_LED_WaitForAction(&htest->leds->LED1); 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); TESTER_LED_WaitForAction(&htest->leds->LED1);
htest->DiodePeakVolt = htest->adc->chAdc.U_Current; htest->DiodeReversePeakVolt = htest->adc->chAdc.U_Current;
} }
/** /**

View File

@ -67,7 +67,7 @@ typedef struct
uint32_t continuous_buff_size; uint32_t continuous_buff_size;
float DiodeForwardVolt; float DiodeForwardVolt;
float DiodePeakVolt; float DiodeReversePeakVolt;
TESTER_LEDsTypeDef *leds; TESTER_LEDsTypeDef *leds;
}TESTER_TestHandleTypeDef; }TESTER_TestHandleTypeDef;

View File

@ -14,7 +14,7 @@ void TESTER_Init(TESTER_ProjectTypeDef *tester)
tester->delay = 250; tester->delay = 250;
tester->delay_en = 0; tester->delay_en = 0;
tester->htest->adc->chAdc.s
tester->func.disable_reset_call = 0; tester->func.disable_reset_call = 0;
tester->htest = &hTestDiode; tester->htest = &hTestDiode;
TESTER_HandleInit(tester->htest, &tester->leds); TESTER_HandleInit(tester->htest, &tester->leds);
@ -56,7 +56,7 @@ void TESTER_main_while(TESTER_ProjectTypeDef *tester)
TESTER_TestDiode_Reverse(tester->htest); TESTER_TestDiode_Reverse(tester->htest);
/* Запись данных в modbus */ /* Запись данных в modbus */
tester->mbdata->InRegs.PeakVoltage = tester->htest->DiodePeakVolt*1000; tester->mbdata->InRegs.ReversePeakVoltage = tester->htest->DiodeReversePeakVolt*1000;
if(tester->func.disable_reset_call == 0) if(tester->func.disable_reset_call == 0)
tester->func.test_diode_reverse = 0; tester->func.test_diode_reverse = 0;
@ -85,7 +85,7 @@ void TESTER_main_while(TESTER_ProjectTypeDef *tester)
TESTER_TestDiode_SwitchConnection(tester->htest); TESTER_TestDiode_SwitchConnection(tester->htest);
/* Запись данных в modbus */ /* Запись данных в 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; tester->mbdata->InRegs.ForwardVoltage = tester->htest->DiodeForwardVolt*1000;
if(tester->func.disable_reset_call == 0) if(tester->func.disable_reset_call == 0)