Skip to content
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

vehicle_odometry: add timestamp_sample field for latency monitoring #14781

Merged
merged 1 commit into from
Apr 28, 2020

Conversation

tzai
Copy link
Contributor

@tzai tzai commented Apr 28, 2020

Describe problem solved by this pull request
Currently, there is no straightforward way to track odometry measurement latencies since the delay isn't captured anywhere

Describe your solution
By adding a timestamp_sample field to vehicle_odometry and using it accordingly (timestamp - timestamp_sample), we get the latency tracking capabilities.

Test data / coverage

image

https://logs.px4.io/plot_app?log=5f50dfcc-8da2-42ea-b3da-53c5930cd6cd

@dagar
Copy link
Member

dagar commented Apr 28, 2020

Thanks @mhkabir. This is a good step towards pushing the actual timestamps into uORB as publication metadata. #13970

@dagar dagar merged commit 5ffe886 into PX4:master Apr 28, 2020
@TSC21 TSC21 added this to the Release v1.11.0 milestone May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants