Robot's source code

Dependencies:   mbed

Revision:
56:eb0600022463
Parent:
42:fcb48e2fc426
Child:
62:454cd844fe1e
--- a/Asservissement/Motor.h	Thu Apr 09 14:07:14 2015 +0000
+++ b/Asservissement/Motor.h	Thu Apr 09 15:54:43 2015 +0000
@@ -63,6 +63,8 @@
         void setInverse(bool i)
         {
             inverse = i;
+            
+            setSpeed(speed);
         }
 
         /** Retourne l'état d'inversion de polarité