deplacement v6

Fork of Deplacement by Projet robot

Revision:
12:5459169b6a52
Parent:
11:5bc41c46cf28
diff -r 5bc41c46cf28 -r 5459169b6a52 Deplacement.cpp
--- a/Deplacement.cpp	Thu Mar 23 09:47:28 2017 +0000
+++ b/Deplacement.cpp	Thu Mar 23 12:46:35 2017 +0000
@@ -60,7 +60,7 @@
 
 }
 
-void Deplacement::avancer(int temps)
+void Deplacement::avancer(float temps)
 {
     m3piD.forward(this->vitesse);
     wait(temps);
@@ -68,7 +68,7 @@
     m3piD.stop();
 }
 
-void Deplacement::reculer(int temps)
+void Deplacement::reculer(float temps)
 {
     m3piD.right(this->vitesse);
     wait(1.8);
@@ -78,13 +78,13 @@
     m3piD.stop();
 }
 
-void Deplacement::gauche(int temps){
+void Deplacement::gauche(float temps){
     m3piD.left(this->vitesse);
     wait(0.9);
     avancer(temps);
 }
 
-void Deplacement::droite(int temps){
+void Deplacement::droite(float temps){
     m3piD.right(this->vitesse);
     wait(0.9);
     avancer(temps);