Robot's source code

Dependencies:   mbed

Map/Objectifs/Obj_clap.cpp

Committer:
Jagang
Date:
2015-05-05
Revision:
109:53918ba98306
Child:
117:f8c147141a0c

File content as of revision 109:53918ba98306:

#include "Obj_clap.h"

#ifdef PLAN_A
    Obj_clap::Obj_clap(float x, float y, float theta, Asserv<float> *asserv, AX12 *ax12_brasG, AX12 *ax12_brasD)
#else
    Obj_clap::Obj_clap(float x, float y, float theta, aserv_planB *asserv, AX12 *ax12_brasG, AX12 *ax12_brasD)
#endif
:Objectif(x,y,theta,asserv)
{
    this->ax12_brasG = ax12_brasG;
    this->ax12_brasD = ax12_brasD;
}

void Obj_clap::run()
{
    
}

int Obj_clap::isActive()
{
    if(!active)
        return false;
    
    if(ax12_brasG->getGoal() == BRASG_OUVERT || ax12_brasD->getGoal() == BRASD_OUVERT)
        return false;
    
    return true;
}