teamALI / Mbed 2 deprecated HB2018

Dependencies:   mbed FreeRTOS

Revision:
22:24c9c2dedca9
Parent:
21:78302ecdb661
Child:
23:79e20be4bc5b
--- a/HbManager.h	Thu Dec 06 01:50:17 2018 +0000
+++ b/HbManager.h	Thu Dec 06 11:03:13 2018 +0000
@@ -6,15 +6,8 @@
 #include "HbAttitude.h"
 #include "HbMotor.h"
 #include "Imu.h"
+#include "HbUserOpe.h"
 
-//ユーザースイッチ(ハンドル)のレジスタ読み値のビットフィールド
-typedef union{
-    UINT16  w;
-    struct{    
-        UCHAR axl_r : 1;
-        UCHAR axl_l : 1;
-    }bf;
-}typu_USER_SW;
 
 
 
@@ -25,11 +18,15 @@
     UINT16      accelVal[2] ;//
     float       nowAngle    ;//現在ヨー角
     float       nowRate     ;//現在加速度
+    typUserSw   usrSW       ;//ユーザー操作SW
     //メンバクラス
     HbEngine    *eng[2]     ;//エンジン制御クラス
     HbAttitude  *att        ;//姿勢制御クラス
     HbMotor     *mot[4]     ;//モーター制御クラス
     Imu         *imu        ;//慣性計測装置
+
+    HbUserOpe   *ope        ;//ユーザー操作
+
 public:
     HbManager();
     void getAttitude();