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:
- 34:234b87f3e6ce
- Parent:
- 33:eb260dbfc22a
- Child:
- 35:3779201b4c73
--- a/HbUserOpe.h Fri Dec 21 12:31:17 2018 +0000
+++ b/HbUserOpe.h Sat Dec 22 09:08:10 2018 +0000
@@ -11,25 +11,24 @@
typUserSw oldOpe;
typUserSw curOpe;
float AinAxlVal;
+ #define MAX_RPM_USERSET 7000 // ユーザーに許容する最大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.97 // アナログ読み込み値の最大有効値
+ #define MIN_EFF_ANA_VAL 0.01 // アナログ読み込み値の最小有効値
public:
- // enum SW_TYPE{
- // ACCEL_R = 0,
- // ACCEL_L,
- // STOP,
- // YAW_CTRL,
- // ENG_STOP,
- // };
enum SW_TYPE{
- BRK_L = 0,// Front Left
- BRK_R, // Front Right
- R_1, // Rear Left?
- R_2, // Rear Right?
- MOT_STOP,
- R_3,
- R_4,
- R_5,
- R_6,
- ALL_STOP,
+ BRK_L = 0,// Front Left ブレーキ
+ BRK_R, // Front Right ブレーキ
+ FLT_ON, //エンジンスロットル開放(全開 浮上)
+ FLT_OFF, //エンジンスロットル閉鎖(アイドリング)
+ FL_BRK, //前部モーター逆噴射 8000rpm?
+ MOT_STOP, //すべてのモーターストップ
+ R_1, //Reserve 1
+ R_2, //Reserve 2
+ R_3, //Reserve 3
+ ALL_STOP, //すべてのモーターストップ&エンジンスロットル閉鎖(アイドリング)
};
HbUserOpe();//コンストラクタ
@@ -37,7 +36,6 @@
typUserSw GetUserOpe();//ボタンの現在状態取得(更新)
INT16 GetAinAccel();//前進用モーター(後部)アクセル用アナログ入力値取得(更新)
- //bool ChkCtrlSW(SW_TYPE styp);
bool ChkCtrlSW(SW_TYPE styp);
bool ChkCtrlSwAny();
bool ChkCtrlSwRiseEdge(SW_TYPE styp);