Commit 978328b8 authored by 张晓彤's avatar 张晓彤

周期读取路网数据更新

parent db6ebc5f
......@@ -32,7 +32,8 @@ class Dispatcher:
self.logger = get_logger("zxt.dispatcher")
self.redispatch_active = active
if self.redispatch_active:
self.topo = graph_construct()
self.topo = Topo()
self.topo.generate_topo_graph()
else:
self.topo = None
self.submission = DispatchSubmission(dump, excavator, truck, self.topo)
......@@ -48,7 +49,8 @@ class Dispatcher:
self.truck.truck_para_period_update(self.dump, self.excavator)
self.truck.state_period_update()
if self.redispatch_active:
self.topo = graph_construct()
self.topo = Topo()
self.topo.generate_topo_graph()
else:
self.topo = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment