diff include/ClockSync.h @ 152:8f98b32d0e23 ClockSync

Last commit on this branch for a while. Overall not very succesful
author Giulio Moro <giuliomoro@yahoo.it>
date Mon, 05 Oct 2015 13:06:14 +0100
parents 134bff10e561
children
line wrap: on
line diff
--- a/include/ClockSync.h	Tue Sep 22 04:10:07 2015 +0100
+++ b/include/ClockSync.h	Mon Oct 05 13:06:14 2015 +0100
@@ -51,7 +51,10 @@
 	VirtualClock *virtualClock;
 	void resetTs();
 	bool areTsValid();
-	void processOffset(double offset);
+	void processOffset();
+	float offset;
+	float nlOffset;
+	float iirOffset;
 	Pid pid;
 public:
 	ClockSync(){};
@@ -67,6 +70,9 @@
 	void setType(int clockSyncType);
 	void setTimestamp(myClock_t timestamp);
 	void print();
+	float getOffset();
+	float getIirOffset();
+
 	/** 
 	 * sends a clockSync without blocking, checks results and returns the timestamp
 	 * immediately after the clockSync has been sent or -1 if there was an error or timeout expired.