Robot's source code
Dependencies: mbed
Diff: main.cpp
- Revision:
- 116:73d7d87e0299
- Parent:
- 114:be06d518b4a7
- Child:
- 118:09bfc62d4867
--- a/main.cpp Wed May 06 06:51:49 2015 +0000 +++ b/main.cpp Wed May 06 11:14:02 2015 +0000 @@ -100,7 +100,7 @@ int main() { #ifdef OUT_USB - logger.baud((int)9600); + logger.baud((int)921600); #endif // *--------------------------* // @@ -218,16 +218,16 @@ #define IA #ifdef IA - /*logger.printf("Pathfinding ... "); + logger.printf("Pathfinding ... "); Timer t; t.start(); - int i = terrain.AStar(1000,300,1750,450,10); + int i = terrain.AStar(1000,400,1750,600,10); t.stop(); logger.printf("[done]\r\n"); logger.printf("Return : %d in %.3fms\r\n",i,t.read()*1000); - for(i=0;i<terrain.path.size()-1;i++) + for(i=1;i<terrain.path.size()-1;i++) { logger.printf("%d\t%.3f\t%.3f\r\n",i,terrain.path[i].x,terrain.path[i].y); asserv.setGoal(terrain.path[i].x,terrain.path[i].y); @@ -238,7 +238,7 @@ logger.printf("Finit !! \r\n"); - while(1);*/ + while(1); while(continuer) {