deplacement v6
Fork of Deplacement by
Deplacement.h@1:662d3c47637f, 2017-02-02 (annotated)
- Committer:
- aure
- Date:
- Thu Feb 02 10:21:55 2017 +0000
- Revision:
- 1:662d3c47637f
- Parent:
- 0:d6b2da5ef6cb
- Child:
- 2:7e0d789e1be8
k
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
aure | 1:662d3c47637f | 1 | #include "m3pi/m3pi.h" |
aure | 1:662d3c47637f | 2 | #include "mbed.h" |
aure | 0:d6b2da5ef6cb | 3 | |
aure | 0:d6b2da5ef6cb | 4 | class Deplacement |
aure | 0:d6b2da5ef6cb | 5 | { |
aure | 1:662d3c47637f | 6 | protected: |
aure | 1:662d3c47637f | 7 | |
aure | 1:662d3c47637f | 8 | int posx; |
aure | 1:662d3c47637f | 9 | int posy; |
aure | 1:662d3c47637f | 10 | float vitesse; |
aure | 1:662d3c47637f | 11 | m3pi m3pi; |
aure | 1:662d3c47637f | 12 | |
aure | 1:662d3c47637f | 13 | |
aure | 0:d6b2da5ef6cb | 14 | public: |
aure | 1:662d3c47637f | 15 | |
aure | 1:662d3c47637f | 16 | Deplacement();//constructeur; |
aure | 1:662d3c47637f | 17 | ~Deplacement(); |
aure | 1:662d3c47637f | 18 | /////////// |
aure | 1:662d3c47637f | 19 | void setVitesse(float v); |
aure | 1:662d3c47637f | 20 | void tourner_droite(); |
aure | 1:662d3c47637f | 21 | void tourner_gauche(); |
aure | 1:662d3c47637f | 22 | void avancer(); |
aure | 1:662d3c47637f | 23 | void reculer(); |
aure | 1:662d3c47637f | 24 | |
aure | 1:662d3c47637f | 25 | float getVitesse(); |
aure | 1:662d3c47637f | 26 | int getPosX(); |
aure | 1:662d3c47637f | 27 | int getPosY(); |
aure | 1:662d3c47637f | 28 | |
aure | 0:d6b2da5ef6cb | 29 | |
aure | 0:d6b2da5ef6cb | 30 | }; |