Yoichi Nagashima
/
CQ_nagasm_08_notch_test
add 60Hz/50Hz notch filter
Diff: notch.hpp
- Revision:
- 1:8fa2f521009a
- Parent:
- 0:5ec74240d7f1
--- a/notch.hpp Tue Dec 16 08:28:20 2014 +0000 +++ b/notch.hpp Tue Dec 16 23:41:53 2014 +0000 @@ -34,6 +34,7 @@ const float _50Hz_a1 = 1.937188, _50Hz_a2 = -0.939101, _50Hz_b1 = -1.999013, _50Hz_c0 = 1.938304; float a1, a2, b1, c0; float y1[3], y2[3]; +int notch_1, notch_2; void coef_set(int herz){ if(herz < 55){