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:
- 40:debe99e228d3
- Parent:
- 39:1b76f7df8804
- Child:
- 41:45c982b1c5b6
--- a/globalFlags.h Sat Jan 19 12:35:23 2019 +0000 +++ b/globalFlags.h Mon Jan 21 06:32:24 2019 +0000 @@ -17,7 +17,7 @@ typedef struct { union{ - UINT32 flg; + UINT16 flg; struct{ bool e1 : 1;//前エンジン回転数 bool e2 : 1;//後ろエンジン回転数 @@ -33,21 +33,29 @@ bool i : 1;//I制御ゲイン bool d : 1;//D制御ゲイン bool v : 1;//PID2(torgue)角速度feedback制御用ゲイン - bool stat : 1;//ステート表示 + bool stat : 1;//ステート表示 bool ain : 1;//アナログ入力値 + }bf; + }d1; + union{ + UINT32 flg; + struct{ bool mo1 : 1;//Motor1 Offset val bool mo2 : 1;//Motor2 Offset val bool mo3 : 1;//Motor3 Offset val bool mo4 : 1;//Motor4 Offset val bool ana1 : 1;//AnalogRead for Motor Accel bool ana2 : 1; - }bf; - }d1; - union{ - UINT32 flg; - struct{ - bool rsv_1 : 1; - bool rsv_2 : 1; + bool rsv_01 : 1; + bool rsv_02 : 1; + bool rsv_03 : 1; + bool rsv_04 : 1; + bool rsv_05 : 1; + bool rsv_06 : 1; + bool rsv_07 : 1; + bool rsv_08 : 1; + bool rsv_09 : 1; + bool rsv_10 : 1; }bf; }d2; }typPrintFlg; @@ -212,6 +220,11 @@ extern DigitalOut led3; extern DigitalOut led4; +//状態表示用 +extern DigitalOut DO_01; +extern DigitalOut DO_02; +extern DigitalOut DO_03; + //モーターアクセル用アナログ入力 extern AnalogIn AinAxl;