most functionality to splashdwon, find neutral and start mission. short timeouts still in code for testing, will adjust to go directly to sit_idle after splashdown

Dependencies:   mbed MODSERIAL FATFileSystem

Revision:
41:ed5b95ab97e3
Parent:
9:d5fcdcb3c89d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PololuHbridge/PololuHBridge.hpp	Wed Feb 14 21:10:51 2018 +0000
@@ -0,0 +1,23 @@
+#ifndef POLOLUHBRIDGE_HPP
+#define POLOLUHBRIDGE_HPP
+
+#include "mbed.h"
+
+class PololuHBridge
+{
+public:
+    PololuHBridge(PinName pwm, PinName dir, PinName reset);
+    
+    void run(float cmd);
+    void reset();
+    void stop();
+
+protected:
+    PwmOut _pwm;
+    DigitalOut _direction;
+    DigitalOut _rst;
+    float _p;
+    float _clamp(float value, float min, float max);
+};
+
+#endif
\ No newline at end of file