Skip to content

Commit 2fa53f5

Browse files
committed
Set time for imu's output ports
1 parent e98ffcc commit 2fa53f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tasks/ImuTask.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ void ImuTask::updateHook()
5353
{
5454
imu_reading.sourceFrame = _imu_frame.value();
5555
imu_reading.targetFrame = _world_frame.value();
56+
imu_reading.time = getCurrentTime();
5657
_orientation_samples.write(imu_reading);
5758
imu_reading.invalidate();
59+
imu_samples.time = getCurrentTime();
5860
_imu_samples.write(imu_samples);
5961
}
6062
}

0 commit comments

Comments
 (0)