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.cpp
- Revision:
- 19:4b0fe9a5ec38
- Parent:
- 18:5aa48aec9cae
- Child:
- 24:c5945aaae777
diff -r 5aa48aec9cae -r 4b0fe9a5ec38 HbMotor.cpp --- a/HbMotor.cpp Sat Dec 01 14:03:08 2018 +0000 +++ b/HbMotor.cpp Wed Dec 05 00:12:38 2018 +0000 @@ -6,7 +6,7 @@ //========================================= HbMotor::HbMotor(UCHAR iID ){ id =iID; - ofs =100;// + ofs =0;// limitH =500; limitL =-500; } @@ -16,7 +16,6 @@ //----------------------------------------- void HbMotor::setValue(INT16 iVal){ UINT16 val; - UINT16 slt; //入力リミット if( iVal > limitH ){ @@ -30,5 +29,6 @@ //オフセット重畳 val = val + ofs; + //PWM幅設定 fpgaSubProp(id,val); }