summaryrefslogtreecommitdiffhomepage
path: root/digital/io-hub/src/common-cc/path.hh
diff options
context:
space:
mode:
authorOlivier Lanneluc2013-04-16 01:35:50 +0200
committerNicolas Schodet2013-05-03 23:07:12 +0200
commitbda7cae4c707a716a9f7b8ba033021b828ff9605 (patch)
tree726d4609c929d487ae23ccf38ba515dd932bbba4 /digital/io-hub/src/common-cc/path.hh
parent6871becf0afc3ee6dda757ac9d2c27c5c1287e8d (diff)
digital/io-hub/src/common-cc: rename "points[]" and associated variables into "navpoints[]"
Diffstat (limited to 'digital/io-hub/src/common-cc/path.hh')
-rw-r--r--digital/io-hub/src/common-cc/path.hh18
1 files changed, 9 insertions, 9 deletions
diff --git a/digital/io-hub/src/common-cc/path.hh b/digital/io-hub/src/common-cc/path.hh
index 53bae657..54822e22 100644
--- a/digital/io-hub/src/common-cc/path.hh
+++ b/digital/io-hub/src/common-cc/path.hh
@@ -74,15 +74,15 @@ class Path
/** Number of possible obstacles. */
static const int PATH_OBSTACLES_NB = (4+1/*cake*/);
/** Number of points per standard obstacle. */
- static const int PATH_OBSTACLES_POINTS_NB = 8;
+ static const int PATH_OBSTACLES_NAVPOINTS_NB = 8;
/** Number of points for the cake */
- static const int PATH_CAKE_POINTS_NB = 14;
+ static const int PATH_CAKE_NAVPOINTS_NB = 14;
/** Number of reserved points for the 2 endpoints */
- static const int PATH_RESERVED_POINTS_NB = 2;
+ static const int PATH_RESERVED_NAVPOINTS_NB = 2;
/** Number of points. */
- static const int PATH_POINTS_NB = (PATH_RESERVED_POINTS_NB +
- (PATH_OBSTACLES_NB * PATH_OBSTACLES_POINTS_NB) +
- (PATH_CAKE_POINTS_NB - PATH_OBSTACLES_POINTS_NB));
+ static const int PATH_NAVPOINTS_NB = (PATH_RESERVED_NAVPOINTS_NB +
+ (PATH_OBSTACLES_NB * PATH_OBSTACLES_NAVPOINTS_NB) +
+ (PATH_CAKE_NAVPOINTS_NB - PATH_OBSTACLES_NAVPOINTS_NB));
/** Borders, any point outside borders is eliminated. */
const uint16_t border_xmin, border_ymin, border_xmax, border_ymax;
@@ -93,11 +93,11 @@ class Path
/** Number of obstacles */
int obstacles_nb;
/** List of navigation points coordonates */
- vect_t points[PATH_POINTS_NB];
+ vect_t navpoints[PATH_NAVPOINTS_NB];
/** Number of navigation points */
- int points_nb;
+ int navpoints_nb;
/** List of nodes used for A*. */
- struct astar_node_t astar_nodes[PATH_POINTS_NB];
+ struct astar_node_t astar_nodes[PATH_NAVPOINTS_NB];
/** Which node to look at for next step. */
int next_node;
/** TRUE when a path has been found */