Takujyou_Ishii / Encoder

Dependents:   SpeedController

Revision:
13:6060cceed39e
Parent:
11:acbbd742df47
--- a/EC.cpp	Fri Aug 09 06:27:49 2019 +0000
+++ b/EC.cpp	Thu Feb 11 13:12:56 2021 +0000
@@ -24,10 +24,12 @@
     omega_=(count_-pre_count_)*2.0f*M_PI/(multiplication_*resolution_*(t-ptw_));
     pre_count_=count_;
     ptw_=t;
+    //printf(" g=%2.1f",omega_);
 }
 
 double Ec::getOmega()const
 {
+    
     return omega_;
 }
 void Ec::setResolution(int res)