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:
- 38:24ee50452755
- Parent:
- 36:2cc739c7e4cb
- Child:
- 48:71aec693a7dc
--- a/HbUserOpe.h Thu Jan 17 11:26:09 2019 +0000
+++ b/HbUserOpe.h Fri Jan 18 11:52:00 2019 +0000
@@ -18,7 +18,7 @@
#define MIN_ANA_VAL 0.0 // 最小アナログ読み込み値
#define MAX_EFF_ANA_VAL 0.97 // アナログ読み込み値の最大有効値
#define MIN_EFF_ANA_VAL 0.01 // アナログ読み込み値の最小有効値
- #define MAX_12BIT_DATA 4095 // FPGAに渡すデータ(値)の最大値
+ //#define MAX_12BIT_DATA 4095 // FPGAに渡すデータ(値)の最大値 --> すでにglobalFlags.hで記述済みのためコメントアウト
public:
enum SW_TYPE{
BRK_L = 0,// Front Left ブレーキ
@@ -37,7 +37,9 @@
~HbUserOpe();//デストラクタ
typUserSw GetUserOpe();//ボタンの現在状態取得(更新)
+ float GetAinAccelRaw();
INT16 GetAinAccel();//前進用モーター(後部)アクセル用アナログ入力値取得(更新)
+ float GetAinThrottleRaw();
INT16 GetAinThrottle();//エンジンスロットル用アナログ入力値取得(更新)
bool ChkCtrlSW(SW_TYPE styp);
bool ChkCtrlSwAny();