2025.5.16第一次提交,彻底完成eyesim平台完整仿真,就差实机控制了。

This commit is contained in:
氧原子
2025-05-16 14:05:08 +08:00
parent a81594bf68
commit b933cdfc1b
9 changed files with 14 additions and 43 deletions

View File

@@ -1,19 +1,17 @@
#include<iostream>
#include<string>
#include<vector>
#include<cstddef>
#include"eyebot++.h"
#include"maze_parameter.h"
#include"maze_func.h"
using namespace std;
void flood(int *map, int *copy_map, int *copy_wall)
void flood(int *map, int *copy_wall)
{
int num = 0;
int size_x = mark.size();
int size_y = mark[0].size();
map[0] = 0;
copy_map[0] = 0;
do
{
@@ -61,13 +59,5 @@ void flood(int *map, int *copy_map, int *copy_wall)
}
}
}
// for (int i = 0; i < size_x; i++)
// {
// for (int j = 0; j < size_y; j++)
// {
// map[(i * size_y) + j] = copy_map[(i * size_y) + j];
// }
// }
} while (map[(target_x * size_y) + target_y] == -1 && num < (size_x * size_y));
} while (map[((target_x - 1) * size_y) + (target_y - 1)] == -1 && num < (size_x * size_y));
}