自动充电解决电池电量掉导致的反复充电问题

zw
CZ 5 months ago
parent 69f4cb1b02
commit 5418fca7da

@ -153,7 +153,6 @@ public class AutoChargeTask : ITask
List<BinInfo> chargingList = binInfos.Where(it => it.ChargeStatus == 1).ToList();
if (canSwapList.Count >= needBatteryCount)
{
int needStopCount = chargingList.Count - (canSwapList.Count - needBatteryCount);
//if (needStopCount > 0)
if (chargingList.Count > 0)
@ -203,7 +202,8 @@ public class AutoChargeTask : ITask
foreach (var VARIABLE in chargingList)
{
if (VARIABLE.Soc >= StaticStationInfo.ChargeSoc)
if (StaticStationInfo.ChargeSoc != 100)
if (VARIABLE.Soc >= StaticStationInfo.ChargeSoc + 1)
{
Log.Info($"auto stop charge {VARIABLE.No} soc>=chaegeSoc");
ClientMgr.GetBySn(VARIABLE.No)?.SendRemoteStopCharging();

Loading…
Cancel
Save