teamALI / Mbed 2 deprecated HB2018

Dependencies:   mbed FreeRTOS

Revision:
23:79e20be4bc5b
Parent:
17:f9610f3cfa1b
Child:
35:3779201b4c73
--- a/HbEngine.h	Thu Dec 06 11:03:13 2018 +0000
+++ b/HbEngine.h	Sat Dec 08 12:08:25 2018 +0000
@@ -12,6 +12,11 @@
     INT16   accel;//エンジンアクセル12bit
     INT16   rpm;//エンジン  回転数
     
+    // 仮の定数
+    static const int IDLE_LOW = 1500;
+    static const int IDLE_HI = 3000;
+    static const int HOVER_CYCLE = 6000;
+
     /*
      * functions
      */
@@ -19,6 +24,9 @@
     HbEngine(UCHAR iID);
     UINT16  getRpm();
     void    setAccell(UINT16 iVal); 
+    
+    bool    chkOverIDLECycle();
+    bool    chkInRangeIDLE();
 };
 
 #endif