ichinoseki_Bteam_2019 / Motor

Dependents:   ArmNode

Revision:
1:809c0963d521
Parent:
0:9c44946754b6
Child:
2:55726bc51f31
--- a/Motor.cpp	Sun Mar 10 15:45:59 2019 +0000
+++ b/Motor.cpp	Sat Aug 17 04:52:35 2019 +0000
@@ -5,13 +5,9 @@
 {
     pwm_mode = SMB;
     abs_max_output = 1.0;
-    frequency = 1.0 / freq;   
+    pwm.period(1.0 / freq);   
 }
 
-void Motor::period()
-{
-    pwm.period(frequency);
-}
 
 void Motor::drive(float output)
 {