1次遅れと2次遅れ,ノッチフィルターを実装
Fork of Filter by
Filter.h@0:17706252d1ed, 2018-01-11 (annotated)
- Committer:
- uenono
- Date:
- Thu Jan 11 06:44:59 2018 +0000
- Revision:
- 0:17706252d1ed
- Child:
- 1:637f9a61b133
?????????
Who changed what in which revision?
User | Revision | Line number | New 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 | 0:17706252d1ed | 10 | |
uenono | 0:17706252d1ed | 11 | |
uenono | 0:17706252d1ed | 12 | Filter(); |
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 | 0:17706252d1ed | 17 | |
uenono | 0:17706252d1ed | 18 | |
uenono | 0:17706252d1ed | 19 | }; |