Commit 15ef77e0 authored by Christian Sponfeldner's avatar Christian Sponfeldner

show sequence number instead of ID in debug message of dispatcher's timestamp helper

parent c0048557
......@@ -27,8 +27,9 @@ ros::Time TimeStampHelper::determineTimestampForRosMsg(const Ethprotocol::EthDat
last_time_emros_ros_ + ros::Duration(0, static_cast<int32_t>(em5_time - last_time_emros_em5_) * 1000);
}
ROS_DEBUG("EMROS-time Axis are drifting (message-ID %d): EM5-Clock is %f seconds %s then ROS-Clock",
source.getData().id, drift_of_time_axis.toSec(), (drift_of_time_axis.toSec() < 0 ? "faster" : "slower"));
ROS_DEBUG("EMROS-time Axis are drifting (message-sequence %d): EM5-Clock is %f seconds %s then ROS-Clock",
source.getData().sequence, drift_of_time_axis.toSec(),
(drift_of_time_axis.toSec() < 0 ? "faster" : "slower"));
if (drift_of_time_axis > ros::Duration(ACCEPTED_DRIFT_OF_TIME_AXIS_SEC_) ||
drift_of_time_axis < ros::Duration(-ACCEPTED_DRIFT_OF_TIME_AXIS_SEC_))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment