From 496c1b542fcc390aa1cd142a5b86aa82ae1b3c25 Mon Sep 17 00:00:00 2001 From: Olivier Lanneluc Date: Fri, 3 May 2013 16:06:38 +0200 Subject: digital/io-hub/src/common-cc/path: reduce the number of navigation points around the obstacles On the second navigation points layer, this number is divided by 2. More points seems unnecessary. --- digital/io-hub/src/common-cc/path.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'digital/io-hub/src/common-cc/path.hh') diff --git a/digital/io-hub/src/common-cc/path.hh b/digital/io-hub/src/common-cc/path.hh index 74a8a382..fc743291 100644 --- a/digital/io-hub/src/common-cc/path.hh +++ b/digital/io-hub/src/common-cc/path.hh @@ -84,12 +84,12 @@ class Path private: /** Add an obstacle on the field */ - void add_obstacle(const vect_t &c, uint16_t r, const int nodes, const int nlayers, const uint16_t clearance, const bool target); + void add_obstacle(const vect_t &c, uint16_t r, int nodes, const int nlayers, const uint16_t clearance, const bool target); /** Number of possible obstacles. */ static const int PATH_OBSTACLES_NB = (4+1/*cake*/); /** Number of points per standard obstacle. */ - static const int PATH_OBSTACLES_NAVPOINTS_NB = 12; + static const int PATH_OBSTACLES_NAVPOINTS_NB = 10; #ifdef playground_2013_hh /** Number of points for the cake (plus 1) */ static const int PATH_CAKE_NAVPOINTS_NB = 6; -- cgit v1.2.3