Mercurial > hg > beaglert
view include/Clock.h @ 149:134bff10e561 ClockSync
Added simple one-variable one-measurement Kalman filter, Pid controller(which output is not used). Virtual clock is now much more precise and reactive for period. Still it is lagging behind a bit on the overall offset.
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Mon, 21 Sep 2015 03:12:21 +0100 |
parents | 53e3c0a3295d |
children |
line wrap: on
line source
#ifndef CLOCK_H_INCLUDED #define CLOCK_H_INCLUDED #include <sys/time.h> #include <stdio.h> #ifdef USE_JUCE #else //#include <BeagleRT.h> #include <native/timer.h> #endif /* USE_JUCE */ typedef long long int myClock_t; namespace Clock { myClock_t getTimeUs(); } #endif /* CLOCK_H_INCLUDED */