23 lines
392 B
C
23 lines
392 B
C
|
|
||
|
#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();
|
||
|
}
|
||
|
}
|