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

Offline time sync help #317

Open
fabiocyro opened this issue Sep 23, 2022 · 1 comment
Open

Offline time sync help #317

fabiocyro opened this issue Sep 23, 2022 · 1 comment

Comments

@fabiocyro
Copy link

Hi, I have a turtlebot3 and I would like to run the SLAM without having to be connected to the internet. But the raspberry pi does not get the current time if it is not connected to internet as everyone knows.

The thing is that I have a RTC module that can be attached to the OpenCR, and my question is:

Can I connect this module to the OpenCR in order to update the time for the rasperry?

I have no idea if this is possible, but if yes, can someone help me?

@johnauld
Copy link

The OpenCR has its own RTC built into the SoC. There's a tiny plug near the reset button where you can attach a 2032-type coin cell to maintain the time when the board is powered off, and there's library support. There's some example code in .../libraries/OpenCR/examples/10. Etc/rtc_time. The actual API is defined in .../variants/OpenCR/hw/driver/drv_rtc.h.

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

2 participants