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

Fork of Filter by Yuki Ueno

Committer:
uenono
Date:
Thu Jan 11 07:00:44 2018 +0000
Revision:
2:a842c1a33e4f
Parent:
1:637f9a61b133
Child:
3:987d5d78f863
??????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
uenono 0:17706252d1ed 1 #include "mbed.h"
uenono 0:17706252d1ed 2
uenono 0:17706252d1ed 3 class Filter
uenono 0:17706252d1ed 4 {
uenono 0:17706252d1ed 5 public:
uenono 0:17706252d1ed 6 double T_LPF;
uenono 0:17706252d1ed 7 double Om_n;
uenono 0:17706252d1ed 8 double sq_dt;
uenono 0:17706252d1ed 9 double sq_Om;
uenono 1:637f9a61b133 10
uenono 0:17706252d1ed 11
uenono 1:637f9a61b133 12 Filter(double);
uenono 0:17706252d1ed 13 void setLowPassPara(double T);
uenono 0:17706252d1ed 14 double LowPassFilter(double input);
uenono 0:17706252d1ed 15 void setNotchPara(double Omega);
uenono 0:17706252d1ed 16 double NotchFilter(double input);
uenono 1:637f9a61b133 17
uenono 1:637f9a61b133 18 private:
uenono 2:a842c1a33e4f 19 double int_time;
uenono 0:17706252d1ed 20
uenono 0:17706252d1ed 21 };