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:
- 21:54ea75f7984f
- Parent:
- 20:5cf6a378801d
- Child:
- 22:02dda79d50b4
--- a/main/main.h Tue Mar 24 14:20:32 2020 +0000 +++ b/main/main.h Fri Apr 03 19:55:09 2020 +0000 @@ -37,10 +37,12 @@ extern DigitalInOut QTRB; //connected to digital P25 // Timers -Timer t_L; -Timer t_R; +Timer t_L; // left encoder +Timer t_R; // right encoder +Timer t_coord; // coordinate timer // Prototypes + void read_encoders(); void init(); void calibrate(); @@ -56,6 +58,7 @@ void invert_path(); void non_looped(); void looped(); +void node_logic(); // Global Variables char path[100]; @@ -71,4 +74,14 @@ int dist_est_1 = 0; int dist_est_2 = 0; +bool t_restart = true; +char dir = 'N'; +int curr_coords[2]; +int total_points = 0; +char point[100]; +int type[100]; +int explored[100]; +int coords_x[100]; +int coords_y[100]; +char turn_priority[4] = { 'S' , 'W' , 'N', 'E' }; // reversed #endif \ No newline at end of file