Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: HbEngine.h
- 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