Bayley Wang
/
foc-ed_in_the_bot_compact
robot
Diff: PwmIn/PwmIn.h
- Revision:
- 78:b8df106126a7
- Parent:
- 75:591556ce033d
- Child:
- 92:a9dac72d8cac
--- a/PwmIn/PwmIn.h Fri Feb 24 21:38:03 2017 +0000 +++ b/PwmIn/PwmIn.h Sat Feb 25 01:12:27 2017 +0000 @@ -5,7 +5,7 @@ class PwmIn { public: - PwmIn(PinName pin, int usec_min, int usec_max); + PwmIn(PinName pin, int usec_min, int usec_max, int usec_crazy); bool get_enabled(); float get_throttle(); public: @@ -19,7 +19,7 @@ InterruptIn* int_in; DigitalIn* dig_in; Timer timer; - int usec_min, usec_max; + int usec_min, usec_max, usec_crazy; private: bool enabled; bool blocked;