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

MAVlink message time sychronization #317

Open
alexblack opened this issue Jun 20, 2016 · 1 comment
Open

MAVlink message time sychronization #317

alexblack opened this issue Jun 20, 2016 · 1 comment

Comments

@alexblack
Copy link

I see that if you register to receive messages, such as Attitude, they include time_boot_ms. I'd like to be able to figure out how calculate at what time.time() (eg system time) a given time_boot_ms was at.

For example, if I receive an Attitude message at time_boot_ms=30630, how do I figure out how long ago that was?

@alexblack
Copy link
Author

Looks like SYSTEM_TIME message might be useful for this:

SYSTEM_TIME {time_unix_usec : 1466397010705000, time_boot_ms : 19900}

    @self.on_message('SYSTEM_TIME')
    def listener(self, name, message):
      print message

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

No branches or pull requests

1 participant