Commit de3f49ae authored by Allvey's avatar Allvey

修正日志路径

parent 5858ccf0
......@@ -31,11 +31,11 @@ class Dispatcher:
self.request_mode = request_mode
self.logger = get_logger("zxt.dispatcher")
self.redispatch_active = active
if self.redispatch_active:
# if self.redispatch_active:
self.topo = Topo()
self.topo.generate_topo_graph()
else:
self.topo = None
# else:
# self.topo = None
self.submission = DispatchSubmission(dump, excavator, truck, self.topo)
def period_update(self):
......@@ -48,11 +48,8 @@ class Dispatcher:
self.excavator.excavator_para_period_update()
self.truck.truck_para_period_update(self.dump, self.excavator)
self.truck.state_period_update()
if self.redispatch_active:
self.topo = Topo()
# if self.redispatch_active:
self.topo.generate_topo_graph()
else:
self.topo = None
def group_generate(self):
"""
......
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