deplacement v6

Fork of Deplacement by Projet robot

Committer:
aure
Date:
Thu Feb 02 10:53:40 2017 +0000
Revision:
3:965871a8c5ff
Parent:
2:7e0d789e1be8
Child:
4:bd8b50f91f81
ojiik

Who changed what in which revision?

UserRevisionLine numberNew 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 3:965871a8c5ff 20 void tourner_droite(); //implementer temps rotation
aure 3:965871a8c5ff 21 void tourner_gauche(); //implementer temps rotation
aure 1:662d3c47637f 22 void avancer();
aure 1:662d3c47637f 23 void reculer();
aure 2:7e0d789e1be8 24 void stop();
aure 1:662d3c47637f 25
aure 1:662d3c47637f 26 float getVitesse();
aure 1:662d3c47637f 27 int getPosX();
aure 1:662d3c47637f 28 int getPosY();
aure 2:7e0d789e1be8 29 void RAZ();
aure 1:662d3c47637f 30
aure 0:d6b2da5ef6cb 31
aure 0:d6b2da5ef6cb 32 };