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: RoboClaw StepperMotor mbed
Fork of Robot2016_2-0 by
Diff: main.cpp
- Revision:
- 28:142ebc5410f3
- Parent:
- 27:ae68960316f1
- Child:
- 29:13aa1d1a1c12
--- a/main.cpp Thu Jan 21 14:25:03 2016 +0000
+++ b/main.cpp Thu Jan 21 14:54:48 2016 +0000
@@ -44,6 +44,7 @@
init();
//Construction des obstacles
map.build();
+
map.AStar(0, 1000, 1400, 1000, 75);
path = map.path;
@@ -51,7 +52,7 @@
odo.GotoXYT(path[i].x, path[i].y, 0);
}
- map.AStar(0, 1000, 0, 1000, 75);
+ map.AStar(1400, 1000, 0, 1000, 75);
path = map.path;
for(int i=0; i<path.size();i++) {
