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.
Fork of Nucleo_CaitSith_Firmware by
Data.h@6:a3829299dfd5, 2015-02-28 (annotated)
- Committer:
- YosukeK
- Date:
- Sat Feb 28 12:02:38 2015 +0000
- Revision:
- 6:a3829299dfd5
Roomba??
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| YosukeK | 6:a3829299dfd5 | 1 | #include <mbed.h> |
| YosukeK | 6:a3829299dfd5 | 2 | |
| YosukeK | 6:a3829299dfd5 | 3 | #ifndef __DATA_H_INCLUDED__ |
| YosukeK | 6:a3829299dfd5 | 4 | #define __DATA_H_INCLUDED__ |
| YosukeK | 6:a3829299dfd5 | 5 | |
| YosukeK | 6:a3829299dfd5 | 6 | /** |
| YosukeK | 6:a3829299dfd5 | 7 | * データクラス |
| YosukeK | 6:a3829299dfd5 | 8 | * 基底のクラス定義のみ |
| YosukeK | 6:a3829299dfd5 | 9 | */ |
| YosukeK | 6:a3829299dfd5 | 10 | class Data { |
| YosukeK | 6:a3829299dfd5 | 11 | public: |
| YosukeK | 6:a3829299dfd5 | 12 | Data(); |
| YosukeK | 6:a3829299dfd5 | 13 | ~Data(); |
| YosukeK | 6:a3829299dfd5 | 14 | |
| YosukeK | 6:a3829299dfd5 | 15 | private: |
| YosukeK | 6:a3829299dfd5 | 16 | |
| YosukeK | 6:a3829299dfd5 | 17 | }; |
| YosukeK | 6:a3829299dfd5 | 18 | |
| YosukeK | 6:a3829299dfd5 | 19 | #endif |
| YosukeK | 6:a3829299dfd5 | 20 | |
| YosukeK | 6:a3829299dfd5 | 21 | |
| YosukeK | 6:a3829299dfd5 | 22 | #ifndef __SENDDATA_H_INCLUDED__ |
| YosukeK | 6:a3829299dfd5 | 23 | #define __SENDDATA_H_INCLUDED__ |
| YosukeK | 6:a3829299dfd5 | 24 | |
| YosukeK | 6:a3829299dfd5 | 25 | /** |
| YosukeK | 6:a3829299dfd5 | 26 | * 送信データクラス |
| YosukeK | 6:a3829299dfd5 | 27 | * データクラスから派生 |
| YosukeK | 6:a3829299dfd5 | 28 | */ |
| YosukeK | 6:a3829299dfd5 | 29 | class SendData : public Data { |
| YosukeK | 6:a3829299dfd5 | 30 | static const int LENGHT = 2; |
| YosukeK | 6:a3829299dfd5 | 31 | |
| YosukeK | 6:a3829299dfd5 | 32 | public: |
| YosukeK | 6:a3829299dfd5 | 33 | SendData(); |
| YosukeK | 6:a3829299dfd5 | 34 | SendData(int left, int right); |
| YosukeK | 6:a3829299dfd5 | 35 | |
| YosukeK | 6:a3829299dfd5 | 36 | int get(int index); |
| YosukeK | 6:a3829299dfd5 | 37 | |
| YosukeK | 6:a3829299dfd5 | 38 | public: |
| YosukeK | 6:a3829299dfd5 | 39 | int wheelVelocity[LENGHT]; |
| YosukeK | 6:a3829299dfd5 | 40 | |
| YosukeK | 6:a3829299dfd5 | 41 | }; |
| YosukeK | 6:a3829299dfd5 | 42 | |
| YosukeK | 6:a3829299dfd5 | 43 | #endif |
