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:
- 26:732bc37fbefd
- Parent:
- 25:f3a6e7eec9c3
- Child:
- 27:ff63c23bc689
--- a/globalFlags.h Wed Dec 12 23:52:22 2018 +0000
+++ b/globalFlags.h Thu Dec 13 12:15:35 2018 +0000
@@ -60,12 +60,15 @@
}bf;
}typAccel;
-// typedef union{
-// UINT16 flg;
-// struct{
-// bool mot1 : 1;//Motor1(1,2)
-// }bf;
-// }typMotFlag;
+typedef union{
+ UINT16 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
+ }bf;
+}typDbgPrintFlg;
//ステート定義
@@ -136,6 +139,9 @@
extern typPrintFlag gf_Print; //デバッグプリントフラグ(1回表示)
extern typPrintFlag gf_Mon; //デバッグモニタフラグ(繰り返し表示)
extern typCalFlag gf_Cal; //キャリブレーションフラグ
+
+extern typDbgPrintFlg gf_DbgPrint ;//デバッグ用
+
extern typAccel gf_AxReq[2]; //アクセル更新
extern typAccel gf_MtReq[4]; //モーター更新