Robot secondaire

Dependencies:   RoboClaw mbed StepperMotor

Fork of RoboClaw by Simon Emarre

Revision:
14:a394e27b8cb2
Parent:
13:5355aed288b0
Child:
16:a1ede21a963b
--- a/main.cpp	Tue Jan 05 17:08:15 2016 +0000
+++ b/main.cpp	Tue Jan 05 17:11:35 2016 +0000
@@ -33,8 +33,9 @@
     map.build();
     init();
 
-    path = map.Astar(0, 1000, 2000, 1000, 1);
-
+    map.Astar(0, 1000, 2000, 1000, 1);
+    path = map.path;
+    
     for(int i=0; i<path.size();i++)
         odo.GotoXYT(path[i].x, path[i].y, 0);