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.
Dependents: Tourobo2022_TBCMotorDriver
Diff: motorDrive_SMB.cpp
- Revision:
- 1:30665f088188
- Parent:
- 0:db4f58345725
diff -r db4f58345725 -r 30665f088188 motorDrive_SMB.cpp --- a/motorDrive_SMB.cpp Wed Mar 25 09:22:53 2020 +0000 +++ b/motorDrive_SMB.cpp Wed Apr 08 07:49:37 2020 +0000 @@ -3,6 +3,7 @@ motorDriveSMB::motorDriveSMB (PinName PwmH,PinName Phase) : pwmh(PwmH),phase(Phase) { lowerLimitDuty = -1.0f; upperLimitDuty = 1.0f; + phase.write(false); } void motorDriveSMB::setupFrequency(float frequency) {