diff include/ClockSync.h @ 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 e77e2e712fbc
children 55c1e591cb2e
line wrap: on
line diff
--- a/include/ClockSync.h	Mon Sep 14 14:57:54 2015 +0100
+++ b/include/ClockSync.h	Mon Sep 14 15:42:11 2015 +0100
@@ -43,6 +43,9 @@
 	int receiveLoopTimeout;
 	char buffer[kSyncMessageLength];
 	VirtualClock *virtualClock;
+	void resetTs();
+	bool areTsValid();
+	void processOffset(double offset);
 public:
 	ClockSync(){};
 	ClockSync(bool thisIsSlave, int aPort, VirtualClock &aVirtualClock);
@@ -78,4 +81,4 @@
 	}
 };
 
-#endif /* CLOCK_SYNC_H_INCLUDED */
\ No newline at end of file
+#endif /* CLOCK_SYNC_H_INCLUDED */