Robot's source code

Dependencies:   mbed

Map/Objectifs/Objectif.h

Committer:
Jagang
Date:
2015-05-06
Revision:
117:f8c147141a0c
Parent:
109:53918ba98306
Child:
119:c45efcd706d9

File content as of revision 117:f8c147141a0c:

#ifndef OBJECTIF_H
#define OBJECTIF_H

#include "defines.h"

#ifdef PLAN_A
    #include "Asserv.h"
#else
    #include "planB.h"
#endif

enum ID
{
    IDO_PC1,
    IDO_DEPOT
};

class Objectif
{
public:
    Objectif(float x, float y, float theta);
    
    virtual void run() = 0;
    bool isDone(){return done;}
    float getX(){return x;}
    float getY(){return y;}
    float getTheta(){return theta;}
    
    int getId(){return id;}
    void setId(int id){this->id = id;}
    
    virtual int isActive(){return active;}
    void activate(){active=true;}
    void desactivate(){active=false;}
protected:
    float x,y,theta;
    bool done,active;
    int id;
};

#endif