This commit is contained in:
Ñõԭ×Ó
2025-05-27 14:57:30 +08:00
parent 00e0d9366d
commit 9d96af2ff3
6 changed files with 45 additions and 35 deletions

View File

@@ -85,6 +85,9 @@ void go_to(int dir)
//~ VWWait(); //等待下一条指令
MOTORDriveRaw(1,0);
MOTORDriveRaw(2,0);
ENCODERReset(1);
ENCODERReset(2);
OSWait(800);
rob_dir = maze_dir; //更新机器人移动到下一格之后的方向
xneighbor(rob_x,rob_dir); //更新机器人移动到下一格之后的X坐标