deplacement v6
Fork of Deplacement by
Embed:
(wiki syntax)
Show/hide line numbers
Deplacement.h
00001 #include "m3pi.h" 00002 #include "mbed.h" 00003 00004 class Deplacement 00005 { 00006 protected: 00007 00008 int posx; 00009 int posy; 00010 float vitesse; 00011 00012 00013 private: 00014 00015 Timer t; 00016 int mseconds; 00017 00018 00019 public: 00020 00021 Deplacement();//constructeur; 00022 ~Deplacement(); 00023 /////////// 00024 void setVitesse(float v); 00025 void tourner_droite(); //implementer temps rotation 00026 void tourner_gauche(); //implementer temps rotation 00027 void gauche(float temps); 00028 void droite(float temps); 00029 void avancer(float temps); 00030 void reculer(float temps); 00031 void stop(); 00032 void tourner_droite_t(); 00033 void quartRotation(); 00034 00035 float getVitesse(); 00036 int getPosX(); 00037 int getPosY(); 00038 void RAZ(); 00039 void init(float val); 00040 00041 00042 00043 };
Generated on Thu Jul 21 2022 02:49:21 by 1.7.2