Bayley Wang
/
foc-ed_in_the_bot_compact
robot
Diff: ThrottleMapper/ThrottleMapper.h
- Revision:
- 56:c681001dfa46
- Parent:
- 50:f508c7860342
- Child:
- 73:d44bc3a46942
--- a/ThrottleMapper/ThrottleMapper.h Wed Jan 25 02:41:17 2017 +0000 +++ b/ThrottleMapper/ThrottleMapper.h Wed Jan 25 22:19:55 2017 +0000 @@ -20,4 +20,12 @@ float getZeroTqThrottle(float w); }; +class LimitingThrottleMapper : public ThrottleMapper { +public: + LimitingThrottleMapper(float wmax); + virtual float map(float throttle, float w); +private: + float __wmax, __wlim; +}; + #endif \ No newline at end of file