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: HbUserOpe.h
- Revision:
- 53:b09c062cc31c
- Parent:
- 48:71aec693a7dc
- Child:
- 57:56b7e66a0c3d
diff -r 9a994998607b -r b09c062cc31c HbUserOpe.h
--- a/HbUserOpe.h Tue Feb 26 09:50:10 2019 +0000
+++ b/HbUserOpe.h Mon Mar 04 04:03:23 2019 +0000
@@ -7,18 +7,6 @@
class HbUserOpe{
-private:
- typUserSw oldOpe;
- typUserSw curOpe;
- float AinAxlVal;
- float AinTrtlVal;
- #define MAX_RPM_USERSET 9000 // ユーザーに許容する最大RPM
- #define MIN_RPM_TOTAL 1500 // おおよその最低回転可能RPM
- #define MAX_ANA_VAL 1.0 // 最大アナログ読み込み値
- #define MIN_ANA_VAL 0.0 // 最小アナログ読み込み値
- #define MAX_EFF_ANA_VAL 0.98 // アナログ読み込み値の最大有効値
- #define MIN_EFF_ANA_VAL 0.01 // アナログ読み込み値の最小有効値
- //#define MAX_12BIT_DATA 4095 // FPGAに渡すデータ(値)の最大値 --> すでにglobalFlags.hで記述済みのためコメントアウト
public:
enum SW_TYPE{
BRK_L = 0,// Front Left ブレーキ
@@ -31,7 +19,25 @@
R_ENG_DOWN, //リアエンジンスロットルをわずかに閉じる
R_1, //Reserve 1
ALL_STOP, //すべてのモーターストップ&エンジンスロットル閉鎖(アイドリング)
+ MAX_SW_TYPE,
};
+
+private:
+ typUserSw oldOpe;
+ typUserSw curOpe;
+ typSwCounter counter[MAX_SW_TYPE];
+
+ float AinAxlVal;
+ float AinTrtlVal;
+ #define MAX_RPM_USERSET 9000 // ユーザーに許容する最大RPM
+ #define MIN_RPM_TOTAL 1500 // おおよその最低回転可能RPM
+ #define MAX_ANA_VAL 1.0 // 最大アナログ読み込み値
+ #define MIN_ANA_VAL 0.0 // 最小アナログ読み込み値
+ #define MAX_EFF_ANA_VAL 0.98 // アナログ読み込み値の最大有効値
+ #define MIN_EFF_ANA_VAL 0.01 // アナログ読み込み値の最小有効値
+ //#define MAX_12BIT_DATA 4095 // FPGAに渡すデータ(値)の最大値 --> すでにglobalFlags.hで記述済みのためコメントアウト
+ #define CNT_NUM_RE 20
+public:
HbUserOpe();//コンストラクタ
~HbUserOpe();//デストラクタ