chargeController/APP/application/Src/chargControl.c

23 lines
392 B
C
Raw Normal View History

2024-12-06 09:38:25 +00:00
#include "chargControl.h"
#include "parameter.h"
#include "comm_types.h"
void chargControl(void)
{
getCVData();
judgeYNBattery();
g_otherParameter.MPPT_Mode = chargControlMode();
if (g_otherParameter.MPPT_Mode == noWork) {
return;
}
if (g_otherParameter.batteryState) {
BatteryChargControl();
} else {
noBatteryChargControl();
}
}