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: Data.h
- Revision:
- 2:144ca2f5d850
- Parent:
- 0:32eb0835b5a3
diff -r aed433d882c9 -r 144ca2f5d850 Data.h
--- /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