Skip to content

Commit

Permalink
fixed aggregated SOC value
Browse files Browse the repository at this point in the history
  • Loading branch information
ai-republic committed Nov 10, 2024
1 parent c878412 commit 508b03a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ public String getPortLocator() {
* @return the {@link EnergyStorage}
*/
public EnergyStorage getEnergyStorage() {
if (energyStorage == null) {
energyStorage = new EnergyStorage();
}

return energyStorage;
}

Expand Down Expand Up @@ -243,6 +247,7 @@ public void process(final Runnable callback) {
*/
protected BatteryPack aggregatedBatteryInfo() {
final BatteryPack result = new BatteryPack();
result.packSOC = 0;
result.maxPackChargeCurrent = Integer.MAX_VALUE;
result.maxPackDischargeCurrent = Integer.MIN_VALUE;
result.maxPackVoltageLimit = Integer.MAX_VALUE;
Expand Down

0 comments on commit 508b03a

Please sign in to comment.