-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix get future timestamp from hardware clock domain. #12401
Fix get future timestamp from hardware clock domain. #12401
Conversation
@hsinkoyu , thank you for the feedback. Can you provide more detailed scenario where you've encountered timestamps being extrapolated into future? Also addressing the comment "the delay between hardware time and system time happens during |
Hi, We use realsense in a timestamp mattered application and found this issue.
You'll see error logs like below soon.
Hardware time is calculated by the linear equation that is the regression from samples we provided.
Normally the duration of getting hardware clock is less than 1 ms, but sometimes And the future timestamp issue will not happen again.
Finally back to the current code, the author was aware of the jumping delay so he/she
The author thinks the delay happens before retrieving the hardware clock.
And the result is the same with my quick fix (precision samples).
Thanks for reviewing the commit. |
Hi, It seems there is a problem when hardware clock (2^32) gets overflow. Thanks. |
Frame timestamp from hardware clock domain is incorrect. Sometimes the timestamp is a future time compared to
the time of getting it. This is because the samples for calculating the linear regression coefficients are not precision.
The system time of a sample is incorrect because the delay between hardware time and system time happens during
sending back the hardware time result, not prior to retrieving the hardware time.