Yuta Togashi / motorDrive_SMB

Dependents:   Tourobo2022_TBCMotorDriver

Files at this revision

API Documentation at this revision

Comitter:
YutaTogashi
Date:
Wed Apr 08 07:49:37 2020 +0000
Parent:
0:db4f58345725
Commit message:
20200408 addComment

Changed in this revision

motorDrive_SMB.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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) {