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:
- 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