Robot secondaire
Dependencies: RoboClaw mbed StepperMotor
Fork of RoboClaw by
Diff: main.cpp
- Revision:
- 18:0f1fefe78266
- Parent:
- 17:e32b4b54fc04
- Child:
- 19:b2f3757fd7ee
- Child:
- 20:30942f018252
--- 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);