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 Timer by
Diff: Map/Map.h
- Revision:
- 47:be4eebf40568
- Parent:
- 45:b53ae54062c6
- Child:
- 49:5e2f7323f280
--- a/Map/Map.h Wed Apr 13 12:47:47 2016 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-#ifndef MAP_H
-#define MAP_H
-
-#include "defines.h"
-
-#include "Obstacles/Obstacle.h"
-#include "Point.h"
-#include <vector>
-
-#define DIAG_COST 0.7071067/2
-#define NDIAG_COST 0.5/2
-
-#define LOG_LEVEL 2 //4 debug(very slow) - 3 errors/warnings/infos - 2 errors/warnings - 1 errors - 0 none
-#define LOG_ASTAR 1
-#define LOG_TENDEUR 1
-
-
-
-class SimplePoint
-{
- public:
- SimplePoint(float x, float y) : x(x),y(y) {}
- SimplePoint(const SimplePoint &p) : x(p.x),y(p.y) {}
- bool operator!=(SimplePoint& p) {return x!=p.x||y!=p.y;}
- virtual ~SimplePoint() {}
- float x,y;
-};
-
-class Map
-{
- public:
- Map();
- ~Map();
- void build();
-
- int getHeight(float x, float y);
-
- // mpc : metre par case, par defaut chaque case fait 10cm
- // Position en mm !!
- char AStar(float x, float y, float goal_x, float goal_y, float mpc=100);
-
-
- std::vector<SimplePoint> path;
- std::vector<Obstacle*> obstacles;
- private:
-};
-
-
-#endif
