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:
 - 29:13aa1d1a1c12
 - Parent:
 - 28:142ebc5410f3
 - Child:
 - 30:58bfac39e701
 
diff -r 142ebc5410f3 -r 13aa1d1a1c12 main.cpp
--- a/main.cpp	Thu Jan 21 14:54:48 2016 +0000
+++ b/main.cpp	Thu Jan 21 14:58:47 2016 +0000
@@ -45,14 +45,14 @@
     //Construction des obstacles
     map.build();
     
-    map.AStar(0, 1000, 1400, 1000, 75);
+    map.AStar(0, 1000, 1400, 1000, 40);
     path = map.path;
     
     for(int i=0; i<path.size();i++) {
         odo.GotoXYT(path[i].x, path[i].y, 0);
     }
     
-    map.AStar(1400, 1000, 0, 1000, 75);
+    map.AStar(odo.getX(), odo.getY(), 0, 1000, 40);
     path = map.path;
     
     for(int i=0; i<path.size();i++) {
    