
Time is good
Fork of Robot2016_2-0 by
Revision 29:13aa1d1a1c12, committed 2016-01-21
- Comitter:
- IceTeam
- Date:
- Thu Jan 21 14:58:47 2016 +0000
- Parent:
- 28:142ebc5410f3
- Child:
- 30:58bfac39e701
- Commit message:
- je repars de odo.getX(), odo.getY plutot que les valeurs que l'on voulait. Test avec mpc=40
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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++) {