From 66b3d174b1e246b984f1b001c16a4c07bb6e2754 Mon Sep 17 00:00:00 2001 From: Olivier Lanneluc Date: Sat, 4 May 2013 13:08:29 +0200 Subject: digital/io-hub/src: use path_debug macro in Path_2013 --- digital/io-hub/src/apbirthday/path_2013.cc | 5 +---- digital/io-hub/src/common-cc/path.cc | 9 --------- digital/io-hub/src/common-cc/path.hh | 8 ++++++++ 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/digital/io-hub/src/apbirthday/path_2013.cc b/digital/io-hub/src/apbirthday/path_2013.cc index a4597b2c..13fe5525 100644 --- a/digital/io-hub/src/apbirthday/path_2013.cc +++ b/digital/io-hub/src/apbirthday/path_2013.cc @@ -25,16 +25,13 @@ #include "path_2013.hh" #include "bot.hh" -#ifdef HOST -#include "debug.host.hh" -#endif Path_2013::Path_2013() : Path( (pg_border_distance + pg_plate_size_border*2 + BOT_SIZE_RADIUS/2), (pg_border_distance), (pg_width - pg_border_distance - pg_plate_size_border*2 - BOT_SIZE_RADIUS/2), (pg_length - pg_border_distance)) { - host_debug("Path_2013 constructor\n"); + path_debug("Path_2013 constructor\n"); obstacles = obstacles_2013; navpoints = navpoints_2013; navweights = navweights_2013; diff --git a/digital/io-hub/src/common-cc/path.cc b/digital/io-hub/src/common-cc/path.cc index 64d56f12..d9920ea0 100644 --- a/digital/io-hub/src/common-cc/path.cc +++ b/digital/io-hub/src/common-cc/path.cc @@ -37,15 +37,6 @@ extern "C" { #include "modules/utils/utils.h" } -/** Enable path finding debug code */ -#define PATH_DEBUG 0 - -#if PATH_DEBUG -# define path_debug host_debug -#else -# define path_debug(args...) do { } while (0) -#endif - /** Define path finding plot ID for the python simu framework */ #define PATH_PLOT_ID 2 diff --git a/digital/io-hub/src/common-cc/path.hh b/digital/io-hub/src/common-cc/path.hh index 7806e537..bd667fdb 100644 --- a/digital/io-hub/src/common-cc/path.hh +++ b/digital/io-hub/src/common-cc/path.hh @@ -30,6 +30,14 @@ extern "C" { #include "modules/path/astar/astar.h" } +/** Enable path finding debug code */ +#define PATH_DEBUG 0 +#if PATH_DEBUG +# define path_debug host_debug +#else +# define path_debug(args...) do { } while (0) +#endif + /** Static nodes index for the endpoints */ enum { CC_NAVPOINT_SRC_IDX = 0, -- cgit v1.2.3