diff options
author | foswret <foswret@posteo.com> | 2025-06-22 09:30:49 -0500 |
---|---|---|
committer | foswret <foswret@posteo.com> | 2025-06-22 09:30:49 -0500 |
commit | 18b51d1918ae95763270abe12aa9f12b2b57d685 (patch) | |
tree | 20e76d1c7931b5db3db306f5bd6a3608d48eb81c /README.md | |
parent | c2ca1d08d1ac33dbe47bfa01fed3e0c696648263 (diff) |
removed gui.py, added code.pymain
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -8,7 +8,7 @@ This is a program designed for use on a robot for the "Robot Tour" Event for the Positions on the course are determined by their X value and Y value. Y values are in reverse (going down on the coordinate plane means the Y value increases). Map dimensions must be rectangular and are defined in `MAPWIDTH` and `MAPHEIGHT` -Start and end points can be determined by changing the values in `STARTPOINT` and `ENDPOINT` in `main.py`. The order of points that the robot travels to is determined by `checkpointList[]`. +Start and end points can be determined by changing the values in `STARTPOINT` and `ENDPOINT` in `pathfind.py`. The order of points that the robot travels to is determined by `checkpointList[]`. ```python checkpointList = [ @@ -39,3 +39,7 @@ wallList = [ ``` The program is instructed to solve the course using the `solveCourse` function. + +The actual pathfinding and motor commands are split up between the `pathfind.py` and `code.py` files. `pathfind.py` simply finds an optimal route and `code.py` is the file that must be put on the robot. in `code.py`, you must copy the output produced by `pathfind.py` into the source code file. Eventually, this may be automated where instructions are output to a text file where `code.py` can read it. + + |