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.
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
Generated on Sat Jul 16 2022 09:17:49 by
