1次遅れと2次遅れ,ノッチフィルターを実装
Fork of Filter by
Filter.h
- Committer:
- uenono
- Date:
- 2018-01-15
- Revision:
- 4:fc9412c8334e
- Parent:
- 3:987d5d78f863
- Child:
- 5:ab6351c18264
File content as of revision 4:fc9412c8334e:
#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 init_data); double LowPassFilter(double input); void setNotchPara(double Omega); double NotchFilter(double input); private: double int_time; double preOutput; bool set_t; };