Add HoldCharge battery mode (#27906)
This commit is contained in:
parent
51845c40a5
commit
03d6c0249a
9 changed files with 78 additions and 5 deletions
|
|
@ -225,6 +225,11 @@ func (m *E3dc) setBatteryMode(mode api.BatteryMode) error {
|
|||
e3dcDischargeBatteryLimit(false, 0),
|
||||
e3dcBatteryCharge(50000), // max. 50kWh
|
||||
}
|
||||
case api.BatteryHoldCharge:
|
||||
messages = []rscp.Message{
|
||||
e3dcDischargeBatteryLimit(false, 0),
|
||||
e3dcBatteryCharge(0),
|
||||
}
|
||||
default:
|
||||
return api.ErrNotAvailable
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ func (m *batterySocLimits) LimitController(socG func() (float64, error), limitSo
|
|||
case api.BatteryCharge:
|
||||
return limitSocS(m.MaxSoc)
|
||||
|
||||
// BatteryHoldCharge implementable via limit soc
|
||||
default:
|
||||
return api.ErrNotAvailable
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue