Files
BK_bishe1/编写代码/maze_func.h
氧原子 6c7fde5740 1
2025-04-25 14:33:54 +08:00

24 lines
969 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
/*---PART1---*/
/*---以下为递归算法探索部分涉及到的函数声明---*/
bool check_mark(); //检查单元格各方面是否已被确认
void maze_entry(int x, int y, int dir, int open); //maze_entry函数,用于写入到wall数组中1有墙 0通路
void xneighbor(int x, int dir); //X坐标更新
void yneighbor(int y, int dir); //Y坐标更新
void eI_xianfu(int eI_max); //对PID控制的积分部分I限幅
void PID_AL(); //位置式PID算法
void PIDStraight(); //PID控制下的直线行驶
void go_to(int dir); //行驶到指定单元格
bool unmarked(int y, int x, int dir); //检查该方向是否已被标记
void explore(); //递归函数
void output_mark(); //打印mark数组检查错误
void output_wall(); //打印wall数组检查错误
/*---以上为递归算法探索部分涉及到的函数声明---*/
/*---PART2---*/
/*---以下为洪水填充算法设涉及到的函数声明---*/