ec

Dependents:   F3RC

Fork of EC by ROBOSTEP_LIBRARY

Revision:
2:a9216df32be6
Parent:
0:20fc96400ca3
Child:
4:1b333860dd41
--- a/SpeedController.cpp	Wed Jun 29 04:36:25 2016 +0000
+++ b/SpeedController.cpp	Wed Jul 06 09:22:50 2016 +0000
@@ -1,11 +1,11 @@
 #include "mbed.h"
 #include "EC.h"
 
-/***ECライブラリの方を先に読んでおくこと***/
+/***EC classの方を先に読んでおくこと***/
 
 
 SpeedControl::SpeedControl(PinName signalA , PinName signalB , int s , double t , PinName pwm_F , PinName pwm_B) : Ec(signalA,signalB,s,t) , pwm_F_(pwm_F),pwm_B_(pwm_B) {
-    Kv_p=0;Kv_p=0;Kv_i=0;diff=0;diff_old=0;integral=0;
+    Kv_p=0;Kv_d=0;Kv_i=0;diff=0;diff_old=0;integral=0;
     out_duty=0;out=0;duty=0;
     pwm_F_.period_us(100);
     pwm_B_.period_us(100);