deplacement v6

Fork of Deplacement by Projet robot

Deplacement.h

Committer:
fab16
Date:
2017-03-23
Revision:
11:5bc41c46cf28
Parent:
10:00043b0d1e5e
Child:
12:5459169b6a52

File content as of revision 11:5bc41c46cf28:

#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(int temps);
         void droite(int temps);
         void avancer(int temps);
         void reculer(int temps);
         void stop();
         void tourner_droite_t();
         void quartRotation();
         
        float getVitesse();
        int getPosX();
        int getPosY();
        void RAZ();
        void init(float val);
        
    
        
};