Planner: add precondition phase before departure (#20431)
This commit is contained in:
parent
c4be8e918d
commit
832012ef15
41 changed files with 746 additions and 222 deletions
|
|
@ -81,7 +81,7 @@ func (h *Hub) apply(ev Event, tmpl string) (string, error) {
|
|||
if v, err := h.vehicles.ByName(name); err == nil {
|
||||
attr["vehicleLimitSoc"] = v.GetLimitSoc()
|
||||
attr["vehicleMinSoc"] = v.GetMinSoc()
|
||||
attr["vehiclePlanTime"], attr["vehiclePlanSoc"] = v.GetPlanSoc()
|
||||
attr["vehiclePlanTime"], _, attr["vehiclePlanSoc"] = v.GetPlanSoc()
|
||||
|
||||
instance := v.Instance()
|
||||
attr["vehicleTitle"] = instance.Title()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue