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.
Diff: HbMotor.h
- Revision:
- 48:71aec693a7dc
- Parent:
- 46:5074781a28dd
--- a/HbMotor.h Wed Feb 20 12:54:25 2019 +0000 +++ b/HbMotor.h Sun Feb 24 10:33:34 2019 +0000 @@ -55,6 +55,7 @@ INT16 calcPwm(INT16 rpm); void setRpmValue(eMotInType type, INT16 value); // 値セット + void setRpmValue(); //!< セットしたRPMの合計でFPGAに値をセット INT16 getRpmValue(eMotInType type); // Rpm void setValFpga(INT16 value); @@ -65,7 +66,7 @@ private: // 今回のモーターと電装ではこうなるが、変更があれば適宜変更かクラス構成の見直しが必要 #define PWN_MAX 4095 -#define RPM_IN_MAX 9500 +#define RPM_IN_MAX 9000 #define RPM_OUT_MAX 9000 #define RPM_MIN 1500 eMotPos pos ;//識別ID @@ -84,6 +85,7 @@ void setCoef(eMotType type, float a, float b, float c); void setValue(eMotInType type, INT16 val); // rpm + void setValue();//!< セットしたRPMの合計でFPGAに値をセット INT16 getValue(eMotInType type); // rpm // Debug用