Optimizer: fix goal for non-socBased vehicles (#25096)
Co-authored-by: andig <cpuidle@gmail.com>
This commit is contained in:
parent
7b3ecb0172
commit
2901d0887c
1 changed files with 2 additions and 0 deletions
|
|
@ -210,6 +210,8 @@ func (site *Site) optimizerUpdate(battery []measurement) error {
|
|||
if goal > 0 {
|
||||
if v := lp.GetVehicle(); socBased && v != nil {
|
||||
goal *= v.Capacity() * 10
|
||||
} else {
|
||||
goal *= 1000 // Wh
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue