暫存版本(物資盤點切換模型完成,需要重調偏移值)
This commit is contained in:
@@ -96,7 +96,11 @@ class main_task():
|
||||
# pid_out = -pid_out
|
||||
# logger.debug(f"err={self.lane_error}, pwm out={pid_out}")
|
||||
self.by_cmd.send_speed_omega(pid_out)
|
||||
|
||||
if var.switch_lane_model:
|
||||
self.socket.send_string("1")
|
||||
resp = self.socket.recv_pyobj()
|
||||
var.switch_lane_model = False
|
||||
return
|
||||
self.socket.send_string("")
|
||||
resp = self.socket.recv_pyobj()
|
||||
self.parse_data(resp)
|
||||
|
||||
Reference in New Issue
Block a user