MCPcopy Create free account
hub / github.com/evcc-io/evcc / EffectiveMaxPower

Method EffectiveMaxPower

core/loadpoint_effective.go:231–240  ·  view source on GitHub ↗

EffectiveMaxPower returns the effective max power taking vehicle capabilities, phase scaling and load management power limits into account

()

Source from the content-addressed store, hash-verified

229// EffectiveMaxPower returns the effective max power taking vehicle capabilities,
230// phase scaling and load management power limits into account
231func (lp *Loadpoint) EffectiveMaxPower() float64 {
232 lp.RLock()
233 defer lp.RUnlock()
234
235 if circuitMaxPower := circuitMaxPower(lp.circuit); circuitMaxPower > 0 {
236 return min(lp.effectiveMaxPower(), circuitMaxPower)
237 }
238
239 return lp.effectiveMaxPower()
240}
241
242// effectiveMaxPower returns the effective max power taking vehicle capabilities and phase scaling into account
243func (lp *Loadpoint) effectiveMaxPower() float64 {

Callers 2

boostPowerMethod · 0.95
plannerActiveMethod · 0.95

Calls 4

RLockMethod · 0.95
RUnlockMethod · 0.95
effectiveMaxPowerMethod · 0.95
circuitMaxPowerFunction · 0.85

Tested by

no test coverage detected