2024-12-09 09:53:43 +00:00
|
|
|
|
|
|
|
#include "test.h"
|
|
|
|
#include "checkTime.h"
|
|
|
|
#include "uart_dev.h"
|
|
|
|
#include "HD_TIM.h"
|
|
|
|
#include "pDebug.h"
|
2024-12-10 10:29:05 +00:00
|
|
|
#include "parameter.h"
|
|
|
|
#include "FM_TIM.h"
|
2024-12-09 09:53:43 +00:00
|
|
|
|
|
|
|
void test(void)
|
|
|
|
{
|
2024-12-10 10:29:05 +00:00
|
|
|
tim_Init();
|
2024-12-09 09:53:43 +00:00
|
|
|
Init_debug_uart();
|
2024-12-10 10:29:05 +00:00
|
|
|
|
2024-12-09 09:53:43 +00:00
|
|
|
|
|
|
|
while (1) {
|
|
|
|
HAL_Delay(1000);
|
2024-12-10 10:29:05 +00:00
|
|
|
debug_printf("time:%f\r\n", checkAbnormalTime);
|
|
|
|
debug_printf("chargCurrent:%f\r\n", getChargCurrent());
|
|
|
|
debug_printf("outputVoltage:%f\r\n", getOutputVoltage());
|
|
|
|
debug_printf("dischargCurrent:%f\r\n", getDischargCurrent());
|
|
|
|
debug_printf("solarInCircuitVoltage:%f\r\n", getSolarInCircuitVoltage());
|
2024-12-09 09:53:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|