Skip to content

Commit

Permalink
log doubles, not ints
Browse files Browse the repository at this point in the history
Work-around doesn't seem needed anymore.
  • Loading branch information
gavanderhoorn committed Apr 23, 2024
1 parent 40b7ca3 commit 758afcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ActionServer_FJT.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 758afcf

Please sign in to comment.