自己位置推定機能を追加

Dependencies:   SBDBT arrc_mbed BNO055

Revision:
0:a1238c4cd105
diff -r 000000000000 -r a1238c4cd105 DUALSHOCKco.hpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DUALSHOCKco.hpp	Wed Jan 19 12:43:26 2022 +0000
@@ -0,0 +1,22 @@
+#ifndef DUALSHOCK_CO_H
+#define DUALSHOCK_CO_H
+#include "mbed.h"
+#define RS_normal 64
+#define RS_MAX 127
+#define RL_MAX 255
+
+class DUALSHOCKco{
+    
+    public:
+        void pass_val(double RSX,double RSY,double R2AN,double L2AN);
+        bool cal_input();
+        double obt_X();
+        double obt_Y();
+        
+    private:
+        double rsx,rsy,r2an,l2an;
+        double Xval,Yval;
+
+};
+
+#endif
\ No newline at end of file