Yosuke Kirihata / Mbed 2 deprecated Nucleo_roomba

Dependencies:   mbed

Data.h

Committer:
YosukeK
Date:
2015-02-14
Revision:
2:144ca2f5d850
Parent:
EventArg.h@ 0:32eb0835b5a3

File content as of revision 2:144ca2f5d850:

#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