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

Control TimeReference source #1859

Open
wants to merge 2 commits into
base: ros2
Choose a base branch
from
Open

Conversation

robobe
Copy link
Contributor

@robobe robobe commented Apr 30, 2023

mavros/time_reference topic using SYSTEM_TIME (#2) mavlink message to return time_unix_usec as time_reference

SYSTEM_TIME has two fields

  • time_unix_usec return epoc time (usec)
  • time_boot_ms: time from boot (msec)

The current version return only the epoc time as time reference
I using the time_ref_source parameter to control witch field to use.
if the parameter set as "epoc" value it's return the time_unix_usec/epoc time otherwise it's return the boot time

We can add other parameter but I think the idea of the control option is important

robo added 2 commits April 30, 2023 11:40
use time_ref_source to control:
- time_unix_usec
- time_boot_ms

using "epoc" string to  use time_unix_usec
other strings: boot_time
@vooon
Copy link
Member

vooon commented May 2, 2023

To me that doesn't seems right. Intended use of the topic - to provide time source for example for ntpd_driver.
So it must be time, not some uptime timer.

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.

None yet

2 participants