1次遅れと2次遅れ,ノッチフィルターを実装
Fork of Filter by
Diff: Filter.h
- Revision:
- 5:ab6351c18264
- Parent:
- 4:fc9412c8334e
- Child:
- 6:13ff4bea3c83
--- a/Filter.h Mon Jan 15 01:57:38 2018 +0000 +++ b/Filter.h Tue Jan 16 15:56:33 2018 +0000 @@ -12,12 +12,15 @@ Filter(double); void setLowPassPara(double T, double init_data); double LowPassFilter(double input); - void setNotchPara(double Omega); + void setNotchPara(double Omega, double init_data); double NotchFilter(double input); private: double int_time; double preOutput; bool set_t; + + double n_preOutput[2]; + double n_preInput[2]; }; \ No newline at end of file