[Dprglist] PID-tuned Clock in Python?

Murray Altheim murray18 at altheim.com
Thu Feb 18 22:29:19 PST 2021


On 19/02/21 6:16 pm, David Anderson via DPRGlist wrote:
> Howdy
> 
> Karim, I can certainly match your downright nitpickery and am therefore
> all in with crotchty oldfartdom.
Man you crotchety old guys are _hard_core_. And nitpickery.

I manage to wrangle my mean clock error down to about 0.09ms per 50ms loop
(measured over 1000 iterations, even under system load), so less than a
tenth of a millisecond error on a 50ms loop is just not good enough?!

Woof. Woof woof and more woof.

But *clearly* Ima gonna havata do bettera, or its le scarpe di cemento.
Maybe down to una microsecondo prima del molo dei pescatori è il mio destino.

I've updated the code so it's now a proper class with YAML configuration,
etc. and updated the github repo at:

    https://github.com/ifurusato/ros/blob/master/ext_clock_test.py
    https://github.com/ifurusato/ros/blob/master/lib/ext_clock.py

[For those of us building robots on platforms that don't have access to
fancy hardware clocks, we have to make do somehow. Ima tryin.]

Cheers,

Murray

...........................................................................
Murray Altheim <murray18 at altheim dot com>                       = =  ===
http://www.altheim.com/murray/                                     ===  ===
                                                                    = =  ===
     In the evening
     The rice leaves in the garden
     Rustle in the autumn wind
     That blows through my reed hut.
            -- Minamoto no Tsunenobu



More information about the DPRGlist mailing list