Mercurial > hg > beaglert
diff core/ClockSyncThread.cpp @ 141:44d07fa9bd03 ClockSync
Ultra-basic feedback for clock sync works^CIssues: response time of the IIR filter is too slow, requires PID and better filtering algorithm.
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Mon, 14 Sep 2015 15:42:11 +0100 |
parents | 4e2dd3eb1d28 |
children | 134bff10e561 |
line wrap: on
line diff
--- a/core/ClockSyncThread.cpp Mon Sep 14 14:57:54 2015 +0100 +++ b/core/ClockSyncThread.cpp Mon Sep 14 15:42:11 2015 +0100 @@ -39,9 +39,7 @@ #ifdef USE_JUCE #else void ClockSyncThread::startThread(){ - printf("starting\n"); BeagleRT_scheduleAuxiliaryTask(clockSyncTask); - printf("started\n"); } void ClockSyncThread::stopThread(){ threadIsExiting=true; @@ -56,11 +54,13 @@ }; void ClockSyncThread::run(){ + printf("var=["); while(!threadShouldExit()){ clockSync.sendReceiveLoop(); // double now=virtualClock->getNow(); // printf("th(end+1)=%f;\n", now); // printf("act(end+1)=%lld;\n", Clock::getTimeUs()); } - printf("Thread is not running \n"); + printf("];\n"); +// printf("Thread is not running \n"); }