deplacement v6
Fork of Deplacement by
Diff: Deplacement.h
- Revision:
- 5:327f0df4ba8e
- Parent:
- 4:bd8b50f91f81
- Child:
- 6:ad9dd32c18c7
diff -r bd8b50f91f81 -r 327f0df4ba8e Deplacement.h --- a/Deplacement.h Thu Feb 02 12:08:29 2017 +0000 +++ b/Deplacement.h Thu Feb 09 14:35:28 2017 +0000 @@ -1,37 +1,37 @@ -#include "m3pi/m3pi.h" +#include "m3pi.h" #include "mbed.h" -class Deplacement +class Deplacement { - protected: - - int posx; - int posy; - float vitesse; - m3pi m3pi; - -private: - -Timer t; -int mseconds; - - - public: - -Deplacement();//constructeur; -~Deplacement(); -/////////// - void setVitesse(float v); - void tourner_droite(); //implementer temps rotation - void tourner_gauche(); //implementer temps rotation - void avancer(); - void reculer(); - void stop(); - -float getVitesse(); -int getPosX(); -int getPosY(); -void RAZ(); - + protected: + + int posx; + int posy; + float vitesse; + + + private: + + Timer t; + int mseconds; + + + public: + Deplacement();//constructeur; + ~Deplacement(); + /////////// + void setVitesse(float v); + void tourner_droite(); //implementer temps rotation + void tourner_gauche(); //implementer temps rotation + void avancer(); + void reculer(); + void stop(); + + float getVitesse(); + int getPosX(); + int getPosY(); + void RAZ(); + + }; \ No newline at end of file