deplacement v6
Fork of Deplacement by
Deplacement.h@8:751dfd02c59e, 2017-02-27 (annotated)
- Committer:
- fab16
- Date:
- Mon Feb 27 10:31:05 2017 +0000
- Revision:
- 8:751dfd02c59e
- Parent:
- 6:ad9dd32c18c7
- Child:
- 10:00043b0d1e5e
deplacement v3
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 |
fab16 | 8:751dfd02c59e | 27 | void gauche(); |
fab16 | 8:751dfd02c59e | 28 | void droite(); |
fab16 | 5:327f0df4ba8e | 29 | void avancer(); |
fab16 | 5:327f0df4ba8e | 30 | void reculer(); |
fab16 | 5:327f0df4ba8e | 31 | void stop(); |
fab16 | 6:ad9dd32c18c7 | 32 | void tourner_droite_t(); |
fab16 | 5:327f0df4ba8e | 33 | |
fab16 | 5:327f0df4ba8e | 34 | float getVitesse(); |
fab16 | 5:327f0df4ba8e | 35 | int getPosX(); |
fab16 | 5:327f0df4ba8e | 36 | int getPosY(); |
fab16 | 5:327f0df4ba8e | 37 | void RAZ(); |
fab16 | 6:ad9dd32c18c7 | 38 | void init(float val); |
fab16 | 5:327f0df4ba8e | 39 | |
fab16 | 5:327f0df4ba8e | 40 | |
aure | 0:d6b2da5ef6cb | 41 | }; |