-
Notifications
You must be signed in to change notification settings - Fork 46
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
time between logs in seconds not accurate #13
Comments
Hi @jiggermole, The OpenLog Artemis generally relies on a 64-bit unsigned integer representing the number of milliseconds based on the day of the year for its timing. That being said, I am observing the same behaviour you've described.
My guess is it has something to do with the code that converts between milliseconds and microseconds, and the calculations of ticks to sleep using a 32kHz clock. I expect @nseidle should be able to shine a little more light on this. Cheers, |
A quick note that this bug is also present in OpenLog_Artemis-v14-RC1.bin.
|
Hi @adamgarbo & @jiggermole , |
Hi @PaulZC, I uploaded the
Should I have exported a new compiled binary? I can't try to do so if needed once I reinstall all the necessary libraries. Cheers, |
Hi @adamgarbo ,
I've attached a zip of the latest binary just in case. |
Hey @PaulZC, Sorry about that! My clone of the v14 branch was missing some commits from upstream. I just uploaded the newest version of the firmware and the sleep timing appears to be working now! I also see that the sleep duration appears to be now limited to 129,600 seconds (36 hours).
I'm looking forward (once I find the time) to incorporate my Apollo3 RTC functionality into the OLA to get alarms working! Cheers, |
Nice one Adam (@adamgarbo) - thank you! Glad it's working for you. |
Hi @jiggermole & @adamgarbo , |
It seems that the time between logs is done with a signed 8 bit integer. If I want to take a reading every 5 minutes I put in 300 seconds and it logs every 40 seconds.
Input 600 seconds and it logs every 80 seconds
Every input under 128 seconds is logged correctly. Anything over that is incorrect.
Currently using v1.3 of the firmware.
The text was updated successfully, but these errors were encountered: