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.
Fork of Robot2016_2-0 by
Revision 18:0f1fefe78266, committed 2016-01-07
- Comitter:
- IceTeam
- Date:
- Thu Jan 07 15:54:49 2016 +0100
- Parent:
- 17:e32b4b54fc04
- Child:
- 19:b2f3757fd7ee
- Child:
- 20:30942f018252
- Commit message:
- Ajout commentaire
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Jan 07 14:08:33 2016 +0100
+++ b/main.cpp Thu Jan 07 15:54:49 2016 +0100
@@ -36,13 +36,14 @@
Map map;
init();
-
+ //Construction des obstacles
map.build();
map.Astar(0, 1000, 2000, 1000, 1);
path = map.path;
- for(int i=0; i<path.size();i++)
+ for(int i=0; i<path.size();i++) {
odo.GotoXYT(path[i].x, path[i].y, 0);
+ }
//odo.GotoXYT(500, 50, 0);
//odo.GotoXYT(200, 0, 0);
