robot

Dependencies:   FastPWM3 mbed

Revision:
160:6948bb7bcabd
Parent:
110:c66f359b6932
Child:
174:3872516b0d04
--- a/ThrottleMapper/ThrottleMapper.h	Sun May 07 17:43:41 2017 +0000
+++ b/ThrottleMapper/ThrottleMapper.h	Sat Jul 01 21:16:33 2017 +0000
@@ -35,4 +35,14 @@
 private:
     float __out;
 };
+
+class AutoThrottleMapper : public ThrottleMapper {
+public:
+    AutoThrottleMapper(float rate, float period) {_rate = rate; _period = period; val = 0.0f;}
+    virtual float map(float throttle, float w);
+private:
+    float _rate, _period;
+    float val;
+};
+
 #endif
\ No newline at end of file