Robot secondaire

Dependencies:   RoboClaw mbed StepperMotor

Fork of RoboClaw by Simon Emarre

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++) {