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
- Committer:
- MasashiNomura
- Date:
- 2018-12-14
- Revision:
- 27:ff63c23bc689
- Parent:
- 25:f3a6e7eec9c3
- Child:
- 28:fdb3b144e342
File content as of revision 27:ff63c23bc689:
#ifndef __HBMOTOR_H__ #define __HBMOTOR_H__ ///////////////////////////////////////////////////////////////////// #include "typedef.h" class HbMotor{ private: UCHAR id ;//識別ID INT16 ofs;//オフセットスロットル INT16 limitH;// INT16 limitL;// INT16 curVal; public: HbMotor(UCHAR iID);//コンストラクタ void setValue(INT16 iVal); void setOfs(INT16 iVal); INT16 getOfs(); void setLimit(INT16 low, INT16 hi); INT16 getCurrentValue(); void setValueDirect(INT16 iVal); void setValueFPGA(UCHAR iID, INT16 iVal);//iIDは 0 or 1 }; ///////////////////////////////////////////////////////////////////// #endif