deplacement v6
Fork of Deplacement by
Diff: Deplacement.h
- Revision:
- 1:662d3c47637f
- Parent:
- 0:d6b2da5ef6cb
- Child:
- 2:7e0d789e1be8
--- a/Deplacement.h Thu Jan 26 16:35:43 2017 +0000 +++ b/Deplacement.h Thu Feb 02 10:21:55 2017 +0000 @@ -1,8 +1,30 @@ -#include "m3pi.h" +#include "m3pi/m3pi.h" +#include "mbed.h" class Deplacement { + protected: + + int posx; + int posy; + float vitesse; + m3pi m3pi; + + public: - void toto(); + +Deplacement();//constructeur; +~Deplacement(); +/////////// + void setVitesse(float v); + void tourner_droite(); + void tourner_gauche(); + void avancer(); + void reculer(); + +float getVitesse(); +int getPosX(); +int getPosY(); + }; \ No newline at end of file