Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Robot2016_2-0 by
Map/Objectif/objectif.h@57:86f491f5b25d, 2016-05-04 (annotated)
- Committer:
- IceTeam
- Date:
- Wed May 04 21:04:50 2016 +0200
- Revision:
- 57:86f491f5b25d
- Parent:
- 56:4fd9636dfb36
- Child:
- 60:8d2320a54a32
Rajout de la classe Objectif, petits changements dans le fonctionnement de map
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| IceTeam | 56:4fd9636dfb36 | 1 | #ifndef OBJECTIF_H |
| IceTeam | 56:4fd9636dfb36 | 2 | #define OBJECTIF_H |
| IceTeam | 56:4fd9636dfb36 | 3 | |
| IceTeam | 57:86f491f5b25d | 4 | /* Dernier Changement : Romain 20h20 |
| IceTeam | 57:86f491f5b25d | 5 | Inclu dans : map.h */ |
| IceTeam | 57:86f491f5b25d | 6 | |
| IceTeam | 57:86f491f5b25d | 7 | #include "../../AX12/AX12.h" |
| IceTeam | 57:86f491f5b25d | 8 | #include "../../StepperMotor/Stepper.h" |
| IceTeam | 57:86f491f5b25d | 9 | |
| IceTeam | 57:86f491f5b25d | 10 | class objectif { |
| IceTeam | 56:4fd9636dfb36 | 11 | public: |
| IceTeam | 57:86f491f5b25d | 12 | objectif (int type, float x_obj, float y_obj, float thet_obj, AX12 * nA1, AX12 * nA2, AX12 * nA3, Stepper * nS1, Stepper * nS2); |
| IceTeam | 57:86f491f5b25d | 13 | bool Action (); |
| IceTeam | 57:86f491f5b25d | 14 | float getX() { return x_objectif; } |
| IceTeam | 57:86f491f5b25d | 15 | float getY() { return y_objectif; } |
| IceTeam | 57:86f491f5b25d | 16 | float getThet() { return thet_object; } |
| IceTeam | 56:4fd9636dfb36 | 17 | |
| IceTeam | 56:4fd9636dfb36 | 18 | private: |
| IceTeam | 57:86f491f5b25d | 19 | bool obj_bloc_action(); |
| IceTeam | 57:86f491f5b25d | 20 | |
| IceTeam | 56:4fd9636dfb36 | 21 | int type; |
| IceTeam | 56:4fd9636dfb36 | 22 | float x_objectif, y_objectif, thet_object; |
| IceTeam | 57:86f491f5b25d | 23 | AX12 * A1, * A2, * A3; |
| IceTeam | 57:86f491f5b25d | 24 | Stepper * S1, * S2; |
| IceTeam | 56:4fd9636dfb36 | 25 | }; |
| IceTeam | 56:4fd9636dfb36 | 26 | |
| IceTeam | 56:4fd9636dfb36 | 27 | #endif |
