##Basic idea
- use flood fill algorithm(see the slides) to search the center
- when at the center, reassign distance values of all cells based on
the actual distance from the cell to the center. - construct the shortest 'route' between center and origin
- use the 'route' to run back home to finish search run
- use the 'route' to run to center for speed run
- use the 'route' to run back home for speed run
##Using Simulator
compile source code: $ make
run it:$ ./run [-m N] [-p] [-v] [-d]
options:
-m N
specify which maze to run with (N
is the id number of the maze)
-p
pause at every move
-v
verbose. Output useful debugging information
-d
demo. Only perform first run (search run)
$ make clean
before we wanna compile updated version
if we wanna run left follower, use $ make leftfollower
and $ ./LfRun [-m N] [-p]
##Todo List
- Assemble hardware
- FloodFill simulation
- PID controller
- LED display programming More to come...
Gihub has emoji.:+1::+1::+1: