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.
Fork of TVDctrller2017_brdRev1_ver6 by
Diff: Global.h
- Revision:
- 44:d433bb5f77c0
- Parent:
- 43:5da6b1574227
- Child:
- 45:8e5d35beb957
--- a/Global.h Thu Nov 02 01:56:46 2017 +0000 +++ b/Global.h Sat Dec 02 10:52:00 2017 +0000 @@ -9,7 +9,8 @@ const float RPS_MEAS_CYCLE_S = 0.01f; const int RPS_MEAS_CYCLE_US = (int)(RPS_MEAS_CYCLE_S * 1000000); -const float LSB_MOTORSPEED = 0.01; //[(m/s) / bit] +const float LSB_MOTORSPEED = 0.01f; //[(m/s) / bit] +const float LSB_RPS = 0.0004f; //[rps / bit] //エラーカウンタ型 struct errCounter_t { @@ -29,7 +30,7 @@ const float M_PI =3.1415f; //[-] -const float ratioLPF =0.67f; //各センサLPF:CutOff:20Hz +const double ratioLPF =0.67; //各センサLPF:CutOff:20Hz const float ratioLPF_RPS =0.27f; //各センサLPF:CutOff:5Hz #define myAbs(x) (((x)>0)?(x):(-(x)))