1次遅れと2次遅れ,ノッチフィルターを実装
Fork of Filter by
Filter.h
- Committer:
- uenono
- Date:
- 2018-01-13
- Revision:
- 3:987d5d78f863
- Parent:
- 2:a842c1a33e4f
- Child:
- 4:fc9412c8334e
File content as of revision 3:987d5d78f863:
#include "mbed.h" class Filter { public: double T_LPF; double Om_n; double sq_dt; double sq_Om; Filter(double); void setLowPassPara(double T); double LowPassFilter(double input); void setNotchPara(double Omega); double NotchFilter(double input); private: double int_time; double preOutput; bool set_t; };