deplacement v6

Fork of Deplacement by Projet robot

Deplacement.h

Committer:
fab16
Date:
2017-03-15
Revision:
10:00043b0d1e5e
Parent:
8:751dfd02c59e
Child:
11:5bc41c46cf28

File content as of revision 10:00043b0d1e5e:

#include "m3pi.h"
#include "mbed.h"

class Deplacement 
{
     protected:
     
         int posx;
         int posy;
         float vitesse;
            
    
    private:
    
        Timer t;
        int mseconds;
         
     
     public:
    
        Deplacement();//constructeur;
        ~Deplacement();
        ///////////
         void setVitesse(float v);
         void tourner_droite();   //implementer temps rotation 
         void tourner_gauche();   //implementer temps rotation
         void gauche();
         void droite();
         void avancer();
         void reculer();
         void stop();
         void tourner_droite_t();
         void quartRotation();
         
        float getVitesse();
        int getPosX();
        int getPosY();
        void RAZ();
        void init(float val);
        
    
        
};