Delta Robot example

Dependencies:   BufferedSerial Eigen

Fork of TCPSocket_Example by mbed_example

Revision:
5:01e1e68309ae
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/syncTime.h	Mon Oct 15 18:30:20 2018 +0000
@@ -0,0 +1,25 @@
+#ifndef SYNC_TIME_H
+#define SYNC_TIME_H
+
+#include "comms.h"
+#include "mbed.h"
+#include "BufferedSerial.h"
+
+class SyncTime{
+   public:
+   SyncTime( int seconds, int nSeconds);
+   rosTime getTime();
+   void updateTime(float correction);
+   void hardReset(int seconds, int nSeconds);
+   
+   private:
+   void resetOffsetCounter();
+   rosTime refTime;
+   Timer sinceRefTimer;
+    
+    
+    };
+
+
+
+#endif
\ No newline at end of file