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.
HbMotor.h@24:c5945aaae777, 2018-12-10 (annotated)
- Committer:
- MasashiNomura
- Date:
- Mon Dec 10 12:29:37 2018 +0000
- Revision:
- 24:c5945aaae777
- Parent:
- 18:5aa48aec9cae
- Child:
- 25:f3a6e7eec9c3
2018/12/10 dbg etc
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
takeru0x1103 | 18:5aa48aec9cae | 1 | #ifndef __HBMOTOR_H__ |
takeru0x1103 | 18:5aa48aec9cae | 2 | #define __HBMOTOR_H__ |
takeru0x1103 | 18:5aa48aec9cae | 3 | ///////////////////////////////////////////////////////////////////// |
takeru0x1103 | 18:5aa48aec9cae | 4 | #include "typedef.h" |
takeru0x1103 | 18:5aa48aec9cae | 5 | |
takeru0x1103 | 18:5aa48aec9cae | 6 | class HbMotor{ |
takeru0x1103 | 18:5aa48aec9cae | 7 | private: |
takeru0x1103 | 18:5aa48aec9cae | 8 | UCHAR id ;//識別ID |
takeru0x1103 | 18:5aa48aec9cae | 9 | INT16 ofs;//オフセットスロットル |
takeru0x1103 | 18:5aa48aec9cae | 10 | INT16 limitH;// |
takeru0x1103 | 18:5aa48aec9cae | 11 | INT16 limitL;// |
takeru0x1103 | 18:5aa48aec9cae | 12 | public: |
takeru0x1103 | 18:5aa48aec9cae | 13 | HbMotor(UCHAR iID);//コンストラクタ |
takeru0x1103 | 18:5aa48aec9cae | 14 | void setValue(INT16 iVal); |
MasashiNomura | 24:c5945aaae777 | 15 | void setOffset(INT16 iVal); |
MasashiNomura | 24:c5945aaae777 | 16 | void setLimit(INT16 low, INT16 hi); |
takeru0x1103 | 18:5aa48aec9cae | 17 | }; |
takeru0x1103 | 18:5aa48aec9cae | 18 | |
takeru0x1103 | 18:5aa48aec9cae | 19 | ///////////////////////////////////////////////////////////////////// |
takeru0x1103 | 18:5aa48aec9cae | 20 | #endif |