I had a shower-thought: Most or all of my test runs tend to drift into the direction "too fast".
And I was talking about a microsecond of resolution per period being at the limit of a second per day....
The code is correctly estimating a lot of digits after the comma for the microseconds, but on every accumulation cycle (one second, i.e. around 440 periods) I round off the sub-microseconds...
My plan to tackle this is to keep the fixed-point microseconds for reading off the time, but also keeping the sub-microsecond digits after the comma in a float to correctly round up or down.
Let's start another two week run with the modifications and let's see whether this improves the drift...
PP
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.