Romain Ame
/
Stressed
coucou
Fork of Robot2016_2-0 by
Diff: main.cpp
- Revision:
- 13:a394e27b8cb2
- Parent:
- 12:5355aed288b0
- Child:
- 16:a1ede21a963b
diff -r 5355aed288b0 -r a394e27b8cb2 main.cpp --- 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);