Yosuke Kirihata / Mbed 2 deprecated Nucleo_roomba

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Data.h Source File

Data.h

00001 #include <mbed.h>
00002 
00003 #ifndef __DATA_H_INCLUDED__
00004 #define __DATA_H_INCLUDED__
00005 
00006 /**
00007  * データクラス
00008  * 基底のクラス定義のみ
00009  */
00010 class Data {
00011     public:
00012         Data();
00013         ~Data();
00014         
00015     private:
00016 
00017 };
00018 
00019 #endif
00020 
00021 
00022 #ifndef __SENDDATA_H_INCLUDED__
00023 #define __SENDDATA_H_INCLUDED__
00024 
00025 /**
00026  * 送信データクラス
00027  * データクラスから派生
00028  */
00029 class SendData : public Data {
00030     static const int LENGHT = 2;
00031     
00032     public:
00033         SendData();
00034         SendData(int left, int right);
00035         
00036         int get(int index);
00037         
00038     private:
00039         int wheelVelocity[LENGHT];
00040         
00041 };
00042 
00043 #endif