Skip to content
Snippets Groups Projects
Commit f64ecc84 authored by Patrick Dormanns's avatar Patrick Dormanns
Browse files

Use monotonic timestamp as assumed by RobotAPI's RobotUnitModuleLogging

parent 3b1c2a89
No related branches found
No related tags found
1 merge request!69Resolve "components/RobotUnitSimulation: Wrong timestamps in 'RobotState/Proprioception'-memory"
......@@ -642,7 +642,7 @@ void RobotUnitSimulation::rtUpdateSensors(bool wait)
}
// This should be the timestamp from the time where the data was queried
const IceUtil::Time now = TimeUtil::GetTime();
const IceUtil::Time now = armarx::rtNow();
//const IceUtil::Time now = IceUtil::Time::microSeconds(simulationDataTimestampInMicroSeconds);
const IceUtil::Time timeSinceLastIteration = now - sensorValuesTimestamp;
const float dt = static_cast<float>(timeSinceLastIteration.toSecondsDouble());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment