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.
HbEngine.h
- Committer:
- MasashiNomura
- Date:
- 2018-12-25
- Revision:
- 35:3779201b4c73
- Parent:
- 23:79e20be4bc5b
- Child:
- 36:2cc739c7e4cb
File content as of revision 35:3779201b4c73:
#ifndef __HBENGINE_H__ #define __HBENGINE_H__ #include "typedef.h" class HbEngine{ private: /* * Varialbles */ UCHAR id; INT16 accel;//エンジンアクセル12bit INT16 rpm;//エンジン 回転数 // 仮の定数 static const int IDLE_LOW = 1500; static const int IDLE_HI = 3000; static const int HOVER_CYCLE = 6000; /* * functions */ public: HbEngine(UCHAR iID); UINT16 getRpm(); void setAccel(UINT16 iVal); bool chkOverIDLECycle(); bool chkInRangeIDLE(); }; #endif