pref: 在move_area离开任务区后下发零速度,避免位移指令未执行完时发送速度指令,导致侧向速度未清空的问题
This commit is contained in:
@@ -1162,7 +1162,14 @@ class move_area2():
|
||||
delay_time = 300 + (abs(self.delta_y) * 500)
|
||||
# 离开停车区域
|
||||
by_cmd.send_distance_y(-15, delay_time)
|
||||
|
||||
time.sleep(delay_time / 400 * 1.5)
|
||||
|
||||
for _ in range(3):
|
||||
by_cmd.send_speed_x(0)
|
||||
by_cmd.send_speed_y(0)
|
||||
by_cmd.send_speed_omega(0)
|
||||
|
||||
# FIXME 移动距离指令下发后未完成,再发送速度指令,将不会清除未完成的速度值
|
||||
# by_cmd.send_distance_y(-15, 300)
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user