Yosuke Kirihata / Mbed 2 deprecated Nucleo_roomba

Dependencies:   mbed

Revision:
2:144ca2f5d850
Parent:
0:32eb0835b5a3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Data.h	Sat Feb 14 11:32:14 2015 +0000
@@ -0,0 +1,43 @@
+#include <mbed.h>
+
+#ifndef __DATA_H_INCLUDED__
+#define __DATA_H_INCLUDED__
+
+/**
+ * データクラス
+ * 基底のクラス定義のみ
+ */
+class Data {
+    public:
+        Data();
+        ~Data();
+        
+    private:
+
+};
+
+#endif
+
+
+#ifndef __SENDDATA_H_INCLUDED__
+#define __SENDDATA_H_INCLUDED__
+
+/**
+ * 送信データクラス
+ * データクラスから派生
+ */
+class SendData : public Data {
+    static const int LENGHT = 2;
+    
+    public:
+        SendData();
+        SendData(int left, int right);
+        
+        int get(int index);
+        
+    private:
+        int wheelVelocity[LENGHT];
+        
+};
+
+#endif
\ No newline at end of file