
Time is good
Fork of Robot2016_2-0 by
Diff: Map/map.h
- Revision:
- 64:24e1057a97f7
- Parent:
- 63:176d04975f06
- Child:
- 68:d19988565dfd
--- a/Map/map.h Wed May 04 21:51:00 2016 +0000 +++ b/Map/map.h Thu May 05 01:30:14 2016 +0200 @@ -1,7 +1,7 @@ #ifndef MAP_H #define MAP_H -/* Dernier Changement : Romain 20h30 +/* Dernier Changement : Romain 0h20 Inclu dans : main.cpp Il faut encore gerer les formations de coquillage */ @@ -15,19 +15,21 @@ #include "../AX12/AX12.h" #include "../../StepperMotor/Stepper.h" -#define MAP_RIGHTSIDE 1 -#define MAP_LEFTSIDE 2 +#define X_START_VERT 110 +#define X_START_VIOLET 2990 +#define Y_START 1000 class map { public: - map (Odometry* nodo, AX12 * np, ControlleurPince * npince); + map (Odometry* nodo, AX12 * np, ControlleurPince * npince, int ncouleur, int nformation); void addObs (obsCarr nobs); void addObj (objectif nobj); void FindWay (point dep, point arr); void FindWay (float depX, float depY, float arrX, float arrY); void Execute (int obj); + void Execute (); void Execute (float XObjectif, float YObjectif); - void Build(int couleur, int formation); + void Build(); nVector<pointParcours>& getParc () { return path; } bool& getEnded () { return endedParc; } @@ -37,14 +39,17 @@ nVector<objectif> objectifs; bool endedParc; // Definit s'il existe un chemin parcourable dans le dernier FindWay + int couleur, formation; Odometry* Codo; - AX12 * A1, * A2, * A3; - Stepper * S1, * S2; + AX12 * Parasol; + ControlleurPince * pince; float min_x_table, min_y_table, max_x_table, max_y_table; void Build_formation_1 (int couleur); void Build_formation_2 (int couleur); + + void Build_Objectives (); }; #endif \ No newline at end of file