Delta Robot example
Dependencies: BufferedSerial Eigen
Fork of TCPSocket_Example by
Diff: syncTime.h
- Revision:
- 5:01e1e68309ae
diff -r 778bc352c47f -r 01e1e68309ae syncTime.h --- /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