Ryosuke Matsushima / Encoder

Dependents:   TUKUBAMotorDriver

Revision:
1:c44f4aa7a45d
Parent:
0:82c1b12a0041
Child:
3:cf7ae37c6930
--- a/Encoder.h	Wed Dec 30 13:59:14 2020 +0000
+++ b/Encoder.h	Wed Dec 30 17:29:45 2020 +0000
@@ -12,6 +12,8 @@
 
 private:
     Timer timer;
+    
+    Timeout stop_checker;
 
     int last_time;
 
@@ -26,6 +28,8 @@
     void update_raito(int dt); //dt microsec
     
     float direction();
+    
+    void check_stop();
 
 protected:
     InterruptIn _pin_A;