From 758afcff06f92588f478b05e035f8be66f7bf1e2 Mon Sep 17 00:00:00 2001 From: gavanderhoorn Date: Tue, 23 Apr 2024 18:00:31 +0200 Subject: [PATCH] log doubles, not ints Work-around doesn't seem needed anymore. --- src/ActionServer_FJT.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ActionServer_FJT.c b/src/ActionServer_FJT.c index 8957ecfd..9b628730 100644 --- a/src/ActionServer_FJT.c +++ b/src/ActionServer_FJT.c @@ -669,7 +669,8 @@ void Ros_ActionServer_FJT_Goal_Complete(GOAL_END_TYPE goal_end_type) { double current_jstate = feedback_FollowJointTrajectory.feedback.actual.positions.data[axis]; diff = fabs(lastTrajPtPositions[axis] - current_jstate); - Ros_Debug_BroadcastMsg("desired - actual: %d, %d", (int)(1000 * lastTrajPtPositions[axis]), (int)(1000 * current_jstate)); + Ros_Debug_BroadcastMsg("desired - actual: %12.8f - %12.8f: %12.8f", + lastTrajPtPositions[axis], current_jstate, diff); double chosen_posTolerance = posTolerance[axis]; if (chosen_posTolerance == 0.0) //user did NOT provide a tolerance