国赛出发前版本
fix: 补充 action 列表检查 pref: 修改 BBALL offset 值 (未同步到其他备份 subtask.py 中) 套用8822参数
This commit is contained in:
@@ -1548,6 +1548,16 @@ class move_area2():
|
||||
if len(resp_commands) == 0:
|
||||
return
|
||||
action_list = resp_commands
|
||||
|
||||
# 先检查一下 action 是否生成正确,如果不正确直接跳过
|
||||
actions_keys = self.action_dict.keys()
|
||||
try:
|
||||
for action in action_list:
|
||||
if not (action.get('action') in actions_keys):
|
||||
return
|
||||
except:
|
||||
return
|
||||
|
||||
# 进入停车区域
|
||||
by_cmd.send_distance_y(10, 450)
|
||||
time.sleep((450 * 5 / 1000) + 0.5)
|
||||
|
||||
Reference in New Issue
Block a user