2024-12-06 09:38:25 +00:00
|
|
|
|
|
|
|
#include "chargControl.h"
|
|
|
|
#include "parameter.h"
|
|
|
|
#include "comm_types.h"
|
|
|
|
|
2024-12-07 09:52:46 +00:00
|
|
|
/**
|
|
|
|
* @brief 完成充电控制
|
|
|
|
* @param
|
|
|
|
* @retval
|
|
|
|
*
|
|
|
|
*/
|
2024-12-06 09:38:25 +00:00
|
|
|
void chargControl(void)
|
|
|
|
{
|
2024-12-09 09:53:43 +00:00
|
|
|
// getCVData();
|
2024-12-06 09:38:25 +00:00
|
|
|
judgeYNBattery();
|
|
|
|
|
2024-12-06 13:23:28 +00:00
|
|
|
chargControlMode();
|
2024-12-06 09:38:25 +00:00
|
|
|
|
2024-12-07 09:52:46 +00:00
|
|
|
if (getMPPT_Mode() == noWork) {
|
2024-12-06 09:38:25 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2024-12-07 09:52:46 +00:00
|
|
|
if (getBatteryState()) {
|
2024-12-06 09:38:25 +00:00
|
|
|
BatteryChargControl();
|
|
|
|
} else {
|
|
|
|
noBatteryChargControl();
|
|
|
|
}
|
|
|
|
}
|