Robot's source code
Dependencies: mbed
Map/Objectifs/Obj_clap.cpp@117:f8c147141a0c, 2015-05-06 (annotated)
- Committer:
- Jagang
- Date:
- Wed May 06 11:22:17 2015 +0000
- Revision:
- 117:f8c147141a0c
- Parent:
- 109:53918ba98306
- Child:
- 123:55e5e9acc541
Objectif pince et depot
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 | 117:f8c147141a0c | 3 | |
Jagang | 117:f8c147141a0c | 4 | Obj_clap::Obj_clap(float x, float y, float theta, AX12 *ax12_brasG, AX12 *ax12_brasD) |
Jagang | 117:f8c147141a0c | 5 | :Objectif(x,y,theta) |
Jagang | 109:53918ba98306 | 6 | { |
Jagang | 109:53918ba98306 | 7 | this->ax12_brasG = ax12_brasG; |
Jagang | 109:53918ba98306 | 8 | this->ax12_brasD = ax12_brasD; |
Jagang | 109:53918ba98306 | 9 | } |
Jagang | 109:53918ba98306 | 10 | |
Jagang | 109:53918ba98306 | 11 | void Obj_clap::run() |
Jagang | 109:53918ba98306 | 12 | { |
Jagang | 109:53918ba98306 | 13 | |
Jagang | 109:53918ba98306 | 14 | } |
Jagang | 109:53918ba98306 | 15 | |
Jagang | 109:53918ba98306 | 16 | int Obj_clap::isActive() |
Jagang | 109:53918ba98306 | 17 | { |
Jagang | 109:53918ba98306 | 18 | if(!active) |
Jagang | 109:53918ba98306 | 19 | return false; |
Jagang | 109:53918ba98306 | 20 | |
Jagang | 109:53918ba98306 | 21 | if(ax12_brasG->getGoal() == BRASG_OUVERT || ax12_brasD->getGoal() == BRASD_OUVERT) |
Jagang | 109:53918ba98306 | 22 | return false; |
Jagang | 109:53918ba98306 | 23 | |
Jagang | 109:53918ba98306 | 24 | return true; |
Jagang | 109:53918ba98306 | 25 | } |