Robot's source code

Dependencies:   mbed

Asserv_Plan_B/planB.h

Committer:
sype
Date:
2015-04-09
Revision:
64:6489bcfc1173
Parent:
62:454cd844fe1e
Child:
68:1ef8b1a37252

File content as of revision 64:6489bcfc1173:

#include "mbed.h"
#include "Odometry.h"
#include "Motor.h"

class aserv_planB
{
public:
    aserv_planB(Odometry &odometry,Motor &motorL,Motor &motorR);
    void update(float dt);
    void control_speed();

private:
    Odometry &m_odometry;
    Motor &m_motorL;
    Motor &m_motorR;
    
    float erreur_g, vitesse_g;
    float erreur_d, vitesse_d;
    float cmd_g, cmd_d;
    float Kp; 
    float consigne_g, consigne_d;

};