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

do not set timestamp for publications #69

Merged
merged 1 commit into from
Jan 14, 2025
Merged

do not set timestamp for publications #69

merged 1 commit into from
Jan 14, 2025

Conversation

bkueng
Copy link
Collaborator

@bkueng bkueng commented Jan 13, 2025

Instead let PX4 set the local timestamp when receiving the data. In most cases the timestamp is only relevant for logging, or checked that it is not too old.

This is to avoid relying on timesync, as we experienced a number of issues:

  • we had cases where on real setups, the time was off by more than 500ms, leading to rejected goto_setpoint samples.
  • when using AirSim SITL, there's generally a time mismatch. This was not closer investigated yet.
  • there's often warnings from timesync

Instead let PX4 set the local timestamp when receiving the data.
In most cases the timestamp is only relevant for logging, or checked that
it is not too old.

This is to avoid relying on timesync, as we experienced a number of issues:
- we had cases where on real setups, the time was off by more than 500ms,
  leading to rejected goto_setpoint samples.
- when using AirSim SITL, there's generally a time mismatch. This was not
  closer investigated yet.
- there's often warnings from timesync
@bkueng bkueng requested a review from GuillaumeLaine January 13, 2025 10:47
@bkueng bkueng merged commit 87de5de into main Jan 14, 2025
9 checks passed
@bkueng bkueng deleted the timestamp branch January 14, 2025 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants