summaryrefslogtreecommitdiffhomepage
path: root/digital
diff options
context:
space:
mode:
authorOlivier Lanneluc2013-04-28 19:14:29 +0200
committerNicolas Schodet2013-05-03 23:07:13 +0200
commitceda783d744d5f3a45f0bf10ff0b9153d91e6002 (patch)
tree8ba4d5ac0c88d170c0ff7042cc9a0d13fe6ddb60 /digital
parent506cc0092ac5c53c2a4d48d419b30af972604366 (diff)
digital/io-hub/src/common-cc: fix #if PATH_DEBUG
Diffstat (limited to 'digital')
-rw-r--r--digital/io-hub/src/common-cc/path.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/digital/io-hub/src/common-cc/path.cc b/digital/io-hub/src/common-cc/path.cc
index 91c23cef..ce5d5b2b 100644
--- a/digital/io-hub/src/common-cc/path.cc
+++ b/digital/io-hub/src/common-cc/path.cc
@@ -229,7 +229,7 @@ int Path::find_neighbors(int cur_point, struct astar_neighbor_t *neighbors)
}
}
-#if PATH_DEBUG
+#ifdef PATH_DEBUG
host_debug("\tFound %u neighbors: ", neighbors_nb);
for(int i=0;i<neighbors_nb;i++)
host_debug("%u (%u) ", neighbors[i].node, neighbors[i].weight);
@@ -253,7 +253,7 @@ void Path::compute(weight_t escape)
/* Store next node to go to */
next_node = astar_nodes[0].prev;
-#if PATH_DEBUG
+#ifdef PATH_DEBUG
/* Log and display the path found */
vect_t path[PATH_NAVPOINTS_NB];
int node = PATH_NAVPOINT_SRC_IDX;
@@ -349,7 +349,7 @@ weight_t Path::get_score(const vect_t &dst)
extern "C" uint8_t
AC_ASTAR_NEIGHBOR_CALLBACK (uint8_t node, struct astar_neighbor_t *neighbors)
{
-#if PATH_DEBUG
+#ifdef PATH_DEBUG
vect_t point_v = robot->path.get_point_vect(node);
host_debug("AC_ASTAR_NEIGHBOR_CALLBACK node=%u (%u;%u)\n", node, point_v.x, point_v.y);
#endif