Robot's source code
Dependencies: mbed
Diff: Map/Objectifs/Obj_clap.cpp
- Revision:
- 109:53918ba98306
- Child:
- 117:f8c147141a0c
diff -r 6a38cc0765f5 -r 53918ba98306 Map/Objectifs/Obj_clap.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Map/Objectifs/Obj_clap.cpp Tue May 05 16:35:53 2015 +0000 @@ -0,0 +1,28 @@ +#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; +}