robot

Dependencies:   FastPWM3 mbed

Revision:
73:d44bc3a46942
Parent:
56:c681001dfa46
Child:
110:c66f359b6932
--- a/ThrottleMapper/ThrottleMapper.h	Sun Feb 05 12:23:46 2017 +0000
+++ b/ThrottleMapper/ThrottleMapper.h	Mon Feb 20 12:37:21 2017 +0000
@@ -28,4 +28,11 @@
     float __wmax, __wlim;
 };
 
+class ConstantThrottleMapper : public ThrottleMapper {
+public:
+    ConstantThrottleMapper(float out) {__out = out;}
+    virtual float map(float throttle, float w) {if (throttle > 0.01f) return __out; return 0.0f;}
+private:
+    float __out;
+};
 #endif
\ No newline at end of file