Yosuke Kirihata / Mbed 2 deprecated Nucleo_roomba

Dependencies:   mbed

Committer:
YosukeK
Date:
Sat Feb 14 11:32:14 2015 +0000
Revision:
2:144ca2f5d850
Parent:
EventArg.h@0:32eb0835b5a3
????????????????????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
YosukeK 2:144ca2f5d850 1 #include <mbed.h>
YosukeK 0:32eb0835b5a3 2
YosukeK 2:144ca2f5d850 3 #ifndef __DATA_H_INCLUDED__
YosukeK 2:144ca2f5d850 4 #define __DATA_H_INCLUDED__
YosukeK 0:32eb0835b5a3 5
YosukeK 0:32eb0835b5a3 6 /**
YosukeK 2:144ca2f5d850 7 * データクラス
YosukeK 2:144ca2f5d850 8 * 基底のクラス定義のみ
YosukeK 0:32eb0835b5a3 9 */
YosukeK 2:144ca2f5d850 10 class Data {
YosukeK 0:32eb0835b5a3 11 public:
YosukeK 2:144ca2f5d850 12 Data();
YosukeK 2:144ca2f5d850 13 ~Data();
YosukeK 0:32eb0835b5a3 14
YosukeK 2:144ca2f5d850 15 private:
YosukeK 2:144ca2f5d850 16
YosukeK 2:144ca2f5d850 17 };
YosukeK 2:144ca2f5d850 18
YosukeK 2:144ca2f5d850 19 #endif
YosukeK 2:144ca2f5d850 20
YosukeK 2:144ca2f5d850 21
YosukeK 2:144ca2f5d850 22 #ifndef __SENDDATA_H_INCLUDED__
YosukeK 2:144ca2f5d850 23 #define __SENDDATA_H_INCLUDED__
YosukeK 2:144ca2f5d850 24
YosukeK 2:144ca2f5d850 25 /**
YosukeK 2:144ca2f5d850 26 * 送信データクラス
YosukeK 2:144ca2f5d850 27 * データクラスから派生
YosukeK 2:144ca2f5d850 28 */
YosukeK 2:144ca2f5d850 29 class SendData : public Data {
YosukeK 2:144ca2f5d850 30 static const int LENGHT = 2;
YosukeK 2:144ca2f5d850 31
YosukeK 0:32eb0835b5a3 32 public:
YosukeK 2:144ca2f5d850 33 SendData();
YosukeK 2:144ca2f5d850 34 SendData(int left, int right);
YosukeK 2:144ca2f5d850 35
YosukeK 2:144ca2f5d850 36 int get(int index);
YosukeK 2:144ca2f5d850 37
YosukeK 2:144ca2f5d850 38 private:
YosukeK 2:144ca2f5d850 39 int wheelVelocity[LENGHT];
YosukeK 2:144ca2f5d850 40
YosukeK 0:32eb0835b5a3 41 };
YosukeK 0:32eb0835b5a3 42
YosukeK 0:32eb0835b5a3 43 #endif