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: globalFlags.h
- Revision:
- 42:cc8501b824ba
- Parent:
- 41:45c982b1c5b6
- Child:
- 43:156199c2f9b6
--- a/globalFlags.h Mon Jan 21 11:57:35 2019 +0000 +++ b/globalFlags.h Wed Jan 23 11:58:53 2019 +0000 @@ -45,6 +45,8 @@ bool mo2 : 1;//Motor2 Offset val bool mo3 : 1;//Motor3 Offset val bool mo4 : 1;//Motor4 Offset val + bool ep1 : 1;//前エンジンにセットされたパラメータ値 + bool ep2 : 1;//後エンジンにセットされたパラメータ値 bool rsv_01 : 1; bool rsv_02 : 1; bool rsv_03 : 1; @@ -53,8 +55,6 @@ bool rsv_06 : 1; bool rsv_07 : 1; bool rsv_08 : 1; - bool rsv_09 : 1; - bool rsv_10 : 1; }bf; }d2; }typPrintFlg; @@ -100,6 +100,14 @@ }bf; }typCalFlag; +typedef union{ + UINT16 dt; + struct{ + UINT16 val : 15;//立てたいbit番号(現状0~10) + bool req : 1;//コマンド要求 + }bf; +}typSWCmd; + // typedef union{ UINT16 dt; @@ -173,6 +181,13 @@ YELLOW, PURPLE, LIGHT_BLUE, + BLK_WHITE,//BLINK + BLK_RED, + BLK_GREEN, + BLK_BLUE, + BLK_YELLOW, + BLK_PURPLE, + BLK_LIGHT_BLUE, }; enum eMotPos{ @@ -265,11 +280,14 @@ //extern typDbgPrintFlg gf_DbgPrint ;//デバッグ用 extern typAccel gf_AxReq[2]; //アクセル更新 +extern typAccel gf_AxReqH[2] ;//浮上時アクセル値更新フラグ extern typAxlRpm gf_MtReq[4]; //モーター姿勢制御更新 extern typAxlRpm gf_MtReqOfs[4]; //モーターオフセット更新 extern typAxlRpm gf_MtReqU[4]; //モーターユーザー更新 extern typAxlRpm gf_MtReqDct[8] ;//ダイレクト(FPGA関数直接呼び出し)モーター更新フラグ +extern typSWCmd gf_SwCmd; //スイッチが押されたことを模擬するフラグ + extern enmHbState gf_State; //現在のステート extern bool gf_StateEnt ;//状態遷移後、最初であることを示す