deplacement v6

Fork of Deplacement by Projet robot

Committer:
aure
Date:
Thu Feb 02 12:08:29 2017 +0000
Revision:
4:bd8b50f91f81
Parent:
3:965871a8c5ff
Child:
5:327f0df4ba8e
l

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 4:bd8b50f91f81 11 m3pi m3pi;
aure 4:bd8b50f91f81 12
aure 4:bd8b50f91f81 13 private:
aure 4:bd8b50f91f81 14
aure 4:bd8b50f91f81 15 Timer t;
aure 4:bd8b50f91f81 16 int mseconds;
aure 1:662d3c47637f 17
aure 1:662d3c47637f 18
aure 0:d6b2da5ef6cb 19 public:
aure 1:662d3c47637f 20
aure 1:662d3c47637f 21 Deplacement();//constructeur;
aure 1:662d3c47637f 22 ~Deplacement();
aure 1:662d3c47637f 23 ///////////
aure 1:662d3c47637f 24 void setVitesse(float v);
aure 3:965871a8c5ff 25 void tourner_droite(); //implementer temps rotation
aure 3:965871a8c5ff 26 void tourner_gauche(); //implementer temps rotation
aure 1:662d3c47637f 27 void avancer();
aure 1:662d3c47637f 28 void reculer();
aure 2:7e0d789e1be8 29 void stop();
aure 1:662d3c47637f 30
aure 1:662d3c47637f 31 float getVitesse();
aure 1:662d3c47637f 32 int getPosX();
aure 1:662d3c47637f 33 int getPosY();
aure 2:7e0d789e1be8 34 void RAZ();
aure 1:662d3c47637f 35
aure 0:d6b2da5ef6cb 36
aure 0:d6b2da5ef6cb 37 };