Robot's source code

Dependencies:   mbed

Revision:
98:2ec4e17dfc92
Parent:
93:4d5664e9188a
Child:
103:6a38cc0765f5
--- a/main.cpp	Sun May 03 16:02:17 2015 +0000
+++ b/main.cpp	Mon May 04 06:18:48 2015 +0000
@@ -189,6 +189,8 @@
                 {
                     state = 1;
                     logger.printf("Arrive en 0,0 !!!!!\r\n");
+                    motorR.setSpeed(0.0f);
+                    motorL.setSpeed(0.0f);
                     wait(5);
                     instanceAsserv.setGoal(300.0f,200.0f,0.0f);
                 }
@@ -196,6 +198,8 @@
                 {
                     state = 2;
                     logger.printf("Arrive en 200,200 !!!!!\r\n");
+                    motorR.setSpeed(0.0f);
+                    motorL.setSpeed(0.0f);
                     wait(5);
                     instanceAsserv.setGoal(0.0f,300.0f,0.0f);
                 }
@@ -203,6 +207,8 @@
                 {
                     state = 0;
                     logger.printf("Arrive en 0,200 !!!!!\r\n");
+                    motorR.setSpeed(0.0f);
+                    motorL.setSpeed(0.0f);
                     wait(5);
                     instanceAsserv.setGoal(0.0f,0.0f,0.0f);
                 }