ichinoseki_Bteam_2019 / Motor

Dependents:   ArmNode

Files at this revision

API Documentation at this revision

Comitter:
Kirua
Date:
Thu Sep 19 13:00:50 2019 +0000
Parent:
3:00a812f5ac69
Commit message:
fix

Changed in this revision

Motor.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Motor.cpp	Sun Sep 15 17:40:14 2019 +0000
+++ b/Motor.cpp	Thu Sep 19 13:00:50 2019 +0000
@@ -4,7 +4,7 @@
 Motor::Motor(PinName _pwm, PinName _dire, int freq) : pwm(_pwm), dire(_dire)
 {
     abs_max_output = 0.95;
-    pwm.period(1.0 / freq);   
+    pwm.period(1.0 / freq); 
     pwm.write(0);
     dire = 0;
     pwm_mode = SMB;