Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed 3875_Individualproject
Diff: main/main.h
- Revision:
- 27:0a3f028f9365
- Parent:
- 25:7523239a2fc1
- Child:
- 28:63ff8290964a
diff -r 582560881379 -r 0a3f028f9365 main/main.h --- a/main/main.h Thu Apr 09 12:16:42 2020 +0000 +++ b/main/main.h Fri Apr 10 14:00:50 2020 +0000 @@ -61,7 +61,7 @@ void node_logic(); bool coord_check(); void update_index(); -void choose_turn(); +bool choose_turn(); //check_explored(); to be added // Global Variables @@ -79,13 +79,16 @@ int dist_est_2 = 0; bool first = true; +bool complete = false; +bool retrace = false; +bool goal_node = false; bool t_restart = true; char dir; int curr_index; int curr_coords[2]; int total_points; unsigned int looped_path[100]; -unsigned int point[100]; // might be irrelevant +unsigned int point[100]; // use a struct unsigned int type[100]; unsigned int explored[100]; int coords_x[100];