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.
HbUserOpe.h@23:79e20be4bc5b, 2018-12-08 (annotated)
- Committer:
- MasashiNomura
- Date:
- Sat Dec 08 12:08:25 2018 +0000
- Revision:
- 23:79e20be4bc5b
- Parent:
- 22:24c9c2dedca9
- Child:
- 26:732bc37fbefd
2018/12/08 Add State Trans etc
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| MasashiNomura | 22:24c9c2dedca9 | 1 | #ifndef __HBUSER_OPE_H__ |
| MasashiNomura | 22:24c9c2dedca9 | 2 | #define __HBUSER_OPE_H__ |
| MasashiNomura | 22:24c9c2dedca9 | 3 | ///////////////////////////////////////////////////////////////////// |
| MasashiNomura | 22:24c9c2dedca9 | 4 | #include "typedef.h" |
| MasashiNomura | 22:24c9c2dedca9 | 5 | //#include "HbManager.h" |
| MasashiNomura | 22:24c9c2dedca9 | 6 | |
| MasashiNomura | 22:24c9c2dedca9 | 7 | |
| MasashiNomura | 22:24c9c2dedca9 | 8 | class HbUserOpe{ |
| MasashiNomura | 22:24c9c2dedca9 | 9 | private: |
| MasashiNomura | 22:24c9c2dedca9 | 10 | typUserSw oldOpe; |
| MasashiNomura | 22:24c9c2dedca9 | 11 | typUserSw curOpe; |
| MasashiNomura | 22:24c9c2dedca9 | 12 | public: |
| MasashiNomura | 23:79e20be4bc5b | 13 | enum SW_TYPE{ |
| MasashiNomura | 23:79e20be4bc5b | 14 | ACCEL_R = 0, |
| MasashiNomura | 23:79e20be4bc5b | 15 | ACCEL_L, |
| MasashiNomura | 23:79e20be4bc5b | 16 | STOP, |
| MasashiNomura | 23:79e20be4bc5b | 17 | YAW_CTRL, |
| MasashiNomura | 23:79e20be4bc5b | 18 | ENG_STOP, |
| MasashiNomura | 23:79e20be4bc5b | 19 | }; |
| MasashiNomura | 23:79e20be4bc5b | 20 | |
| MasashiNomura | 22:24c9c2dedca9 | 21 | HbUserOpe();//コンストラクタ |
| MasashiNomura | 22:24c9c2dedca9 | 22 | ~HbUserOpe();//デストラクタ |
| MasashiNomura | 22:24c9c2dedca9 | 23 | |
| MasashiNomura | 23:79e20be4bc5b | 24 | typUserSw GetUserOpe();//ボタンの現在状態取得(更新) |
| MasashiNomura | 23:79e20be4bc5b | 25 | bool ChkCtrlSW(SW_TYPE styp); |
| MasashiNomura | 23:79e20be4bc5b | 26 | bool ChkCtrlSwAny(); |
| MasashiNomura | 22:24c9c2dedca9 | 27 | }; |
| MasashiNomura | 22:24c9c2dedca9 | 28 | |
| MasashiNomura | 22:24c9c2dedca9 | 29 | ///////////////////////////////////////////////////////////////////// |
| MasashiNomura | 22:24c9c2dedca9 | 30 | #endif |