Robot's source code
Dependencies: mbed
Map/Objectifs/Obj_clap.cpp@109:53918ba98306, 2015-05-05 (annotated)
- Committer:
- Jagang
- Date:
- Tue May 05 16:35:53 2015 +0000
- Revision:
- 109:53918ba98306
- Child:
- 117:f8c147141a0c
IA
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jagang | 109:53918ba98306 | 1 | #include "Obj_clap.h" |
Jagang | 109:53918ba98306 | 2 | |
Jagang | 109:53918ba98306 | 3 | #ifdef PLAN_A |
Jagang | 109:53918ba98306 | 4 | Obj_clap::Obj_clap(float x, float y, float theta, Asserv<float> *asserv, AX12 *ax12_brasG, AX12 *ax12_brasD) |
Jagang | 109:53918ba98306 | 5 | #else |
Jagang | 109:53918ba98306 | 6 | Obj_clap::Obj_clap(float x, float y, float theta, aserv_planB *asserv, AX12 *ax12_brasG, AX12 *ax12_brasD) |
Jagang | 109:53918ba98306 | 7 | #endif |
Jagang | 109:53918ba98306 | 8 | :Objectif(x,y,theta,asserv) |
Jagang | 109:53918ba98306 | 9 | { |
Jagang | 109:53918ba98306 | 10 | this->ax12_brasG = ax12_brasG; |
Jagang | 109:53918ba98306 | 11 | this->ax12_brasD = ax12_brasD; |
Jagang | 109:53918ba98306 | 12 | } |
Jagang | 109:53918ba98306 | 13 | |
Jagang | 109:53918ba98306 | 14 | void Obj_clap::run() |
Jagang | 109:53918ba98306 | 15 | { |
Jagang | 109:53918ba98306 | 16 | |
Jagang | 109:53918ba98306 | 17 | } |
Jagang | 109:53918ba98306 | 18 | |
Jagang | 109:53918ba98306 | 19 | int Obj_clap::isActive() |
Jagang | 109:53918ba98306 | 20 | { |
Jagang | 109:53918ba98306 | 21 | if(!active) |
Jagang | 109:53918ba98306 | 22 | return false; |
Jagang | 109:53918ba98306 | 23 | |
Jagang | 109:53918ba98306 | 24 | if(ax12_brasG->getGoal() == BRASG_OUVERT || ax12_brasD->getGoal() == BRASD_OUVERT) |
Jagang | 109:53918ba98306 | 25 | return false; |
Jagang | 109:53918ba98306 | 26 | |
Jagang | 109:53918ba98306 | 27 | return true; |
Jagang | 109:53918ba98306 | 28 | } |