Basic implementation of watchdog

Dependencies:   ros_lib_kinetic

Revision:
0:975e02a70882
Child:
1:38b385f34687
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Jun 25 23:31:34 2019 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+#include <ros.h>
+#include <nav_msgs/Odometry.h>  //contains both the twist and pose
+#include "Watchdog.h"
+
+
+Serial pc(USBTX, USBRX, 57600);     //Serial Monitor
+
+int main(void)
+{
+    Watchdog dog;
+    dog.Configure(1);
+    pc.print("is it caused ",dog.WatchdogCausedReset());
+    
+    while(1)
+    {
+    pc.printf("hello \r\n");
+    wait(1.6);
+    dog.Service();
+    //return 0;
+    }
+}
\ No newline at end of file