deplacement v6
Fork of Deplacement by
Deplacement.h@12:5459169b6a52, 2017-03-23 (annotated)
- Committer:
- aure
- Date:
- Thu Mar 23 12:46:35 2017 +0000
- Revision:
- 12:5459169b6a52
- Parent:
- 11:5bc41c46cf28
fbuyfgygf
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
fab16 | 5:327f0df4ba8e | 1 | #include "m3pi.h" |
aure | 1:662d3c47637f | 2 | #include "mbed.h" |
aure | 0:d6b2da5ef6cb | 3 | |
fab16 | 5:327f0df4ba8e | 4 | class Deplacement |
aure | 0:d6b2da5ef6cb | 5 | { |
fab16 | 5:327f0df4ba8e | 6 | protected: |
fab16 | 5:327f0df4ba8e | 7 | |
fab16 | 5:327f0df4ba8e | 8 | int posx; |
fab16 | 5:327f0df4ba8e | 9 | int posy; |
fab16 | 5:327f0df4ba8e | 10 | float vitesse; |
fab16 | 5:327f0df4ba8e | 11 | |
fab16 | 5:327f0df4ba8e | 12 | |
fab16 | 5:327f0df4ba8e | 13 | private: |
fab16 | 5:327f0df4ba8e | 14 | |
fab16 | 5:327f0df4ba8e | 15 | Timer t; |
fab16 | 5:327f0df4ba8e | 16 | int mseconds; |
fab16 | 5:327f0df4ba8e | 17 | |
fab16 | 5:327f0df4ba8e | 18 | |
fab16 | 5:327f0df4ba8e | 19 | public: |
aure | 0:d6b2da5ef6cb | 20 | |
fab16 | 5:327f0df4ba8e | 21 | Deplacement();//constructeur; |
fab16 | 5:327f0df4ba8e | 22 | ~Deplacement(); |
fab16 | 5:327f0df4ba8e | 23 | /////////// |
fab16 | 5:327f0df4ba8e | 24 | void setVitesse(float v); |
fab16 | 5:327f0df4ba8e | 25 | void tourner_droite(); //implementer temps rotation |
fab16 | 5:327f0df4ba8e | 26 | void tourner_gauche(); //implementer temps rotation |
aure | 12:5459169b6a52 | 27 | void gauche(float temps); |
aure | 12:5459169b6a52 | 28 | void droite(float temps); |
aure | 12:5459169b6a52 | 29 | void avancer(float temps); |
aure | 12:5459169b6a52 | 30 | void reculer(float temps); |
fab16 | 5:327f0df4ba8e | 31 | void stop(); |
fab16 | 6:ad9dd32c18c7 | 32 | void tourner_droite_t(); |
fab16 | 10:00043b0d1e5e | 33 | void quartRotation(); |
fab16 | 5:327f0df4ba8e | 34 | |
fab16 | 5:327f0df4ba8e | 35 | float getVitesse(); |
fab16 | 5:327f0df4ba8e | 36 | int getPosX(); |
fab16 | 5:327f0df4ba8e | 37 | int getPosY(); |
fab16 | 5:327f0df4ba8e | 38 | void RAZ(); |
fab16 | 6:ad9dd32c18c7 | 39 | void init(float val); |
fab16 | 10:00043b0d1e5e | 40 | |
fab16 | 5:327f0df4ba8e | 41 | |
fab16 | 5:327f0df4ba8e | 42 | |
aure | 0:d6b2da5ef6cb | 43 | }; |