Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: ThrottleMapper/ThrottleMapper.h
- 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