1次遅れと2次遅れ,ノッチフィルターを実装

Fork of Filter by Yuki Ueno

Revision:
4:fc9412c8334e
Parent:
3:987d5d78f863
Child:
5:ab6351c18264
diff -r 987d5d78f863 -r fc9412c8334e Filter.cpp
--- a/Filter.cpp	Sat Jan 13 17:05:58 2018 +0000
+++ b/Filter.cpp	Mon Jan 15 01:57:38 2018 +0000
@@ -3,13 +3,13 @@
 Filter::Filter(double xint_time)
 {
     int_time = xint_time;
-    preOutput = 0;
     set_t = false;
 }
 
-void Filter::setLowPassPara(double T)
+void Filter::setLowPassPara(double T, double init_data)
 {
     T_LPF = T;
+    preOutput = init_data;
     set_t = true;
 }