init
Diff: throttle.h
- Revision:
- 0:f9937e19c867
- Child:
- 3:756f6e19ee2d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/throttle.h Wed May 20 11:43:43 2015 +0000 @@ -0,0 +1,15 @@ +#ifndef ThrottleCtrl_H +#define ThrottleCtrl_H +#include "mbed.h" + +class ThrottleCtrl{ +private: +PwmOut _servo; + +public: + ThrottleCtrl(PinName servo); + int MaxPos, MinPos; + void set(float pos); +}; + +#endif \ No newline at end of file