robot

Dependencies:   FastPWM3 mbed

Revision:
92:a9dac72d8cac
Parent:
78:b8df106126a7
Child:
151:5bbb15351798
--- a/PwmIn/PwmIn.h	Wed Apr 05 20:57:18 2017 +0000
+++ b/PwmIn/PwmIn.h	Thu Apr 06 17:33:47 2017 +0000
@@ -5,7 +5,7 @@
 
 class PwmIn {
 public:
-    PwmIn(PinName pin, int usec_min, int usec_max, int usec_crazy);
+    PwmIn(PinName pin, int usec_min, int usec_max, int usec_crazy_low, int usec_crazy_hi);
     bool get_enabled();
     float get_throttle();
 public:
@@ -19,10 +19,11 @@
     InterruptIn* int_in;
     DigitalIn*   dig_in;
     Timer timer;
-    int usec_min, usec_max, usec_crazy;
+    int usec_min, usec_max, usec_crazy_low, usec_crazy_hi;
 private:
     bool enabled;
     bool blocked;
+    bool risen;
     int usecs;
 };
 #endif
\ No newline at end of file