Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: EC.cpp
- 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)