ecl中的低通滤波器 这里以磁传感器为例 mag_filter=mag_filter*0.9+mag_sample*0.1 采样率为100hz 一阶数字低通滤波器的公式为: Yn=a∗Xn+(1−a)∗Yn−1Y_n=a*X_n+(1-a)*Y_{n-1}Yn=a∗Xn+(1−a)∗