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@27:ff63c23bc689, 2018-12-14 (annotated)
- Committer:
- MasashiNomura
- Date:
- Fri Dec 14 12:32:27 2018 +0000
- Revision:
- 27:ff63c23bc689
- Parent:
- 25:f3a6e7eec9c3
- Child:
- 28:fdb3b144e342
2018/12/14 add AttCtrlDataArrayClass 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;// |
MasashiNomura | 25:f3a6e7eec9c3 | 12 | INT16 curVal; |
takeru0x1103 | 18:5aa48aec9cae | 13 | public: |
takeru0x1103 | 18:5aa48aec9cae | 14 | HbMotor(UCHAR iID);//コンストラクタ |
takeru0x1103 | 18:5aa48aec9cae | 15 | void setValue(INT16 iVal); |
MasashiNomura | 25:f3a6e7eec9c3 | 16 | void setOfs(INT16 iVal); |
MasashiNomura | 25:f3a6e7eec9c3 | 17 | INT16 getOfs(); |
MasashiNomura | 24:c5945aaae777 | 18 | void setLimit(INT16 low, INT16 hi); |
MasashiNomura | 25:f3a6e7eec9c3 | 19 | INT16 getCurrentValue(); |
MasashiNomura | 25:f3a6e7eec9c3 | 20 | void setValueDirect(INT16 iVal); |
MasashiNomura | 27:ff63c23bc689 | 21 | void setValueFPGA(UCHAR iID, INT16 iVal);//iIDは 0 or 1 |
takeru0x1103 | 18:5aa48aec9cae | 22 | }; |
takeru0x1103 | 18:5aa48aec9cae | 23 | |
takeru0x1103 | 18:5aa48aec9cae | 24 | ///////////////////////////////////////////////////////////////////// |
takeru0x1103 | 18:5aa48aec9cae | 25 | #endif |