iOS - High pass filter equation for accelerometer

前端 未结 3 1086
广开言路
广开言路 2021-02-03 15:42

Could someone explain how one arrives at the equation below for high pass filtering of the accelerometer values? I don\'t need mathematical derivation, just an intuitive interpr

3条回答
  •  野的像风
    2021-02-03 16:18

    While the other answers are correct, here is an simplistic explanation. With kFilteringFactor 0.1 you are taking 10% of the current value and adding 90% of the previous value. Therefore the value retains a 90% similarity to the previous value, which increases its resistance to sudden changes. This decreases noise but it also makes it less responsive to changes in the signal. To reduce noise and keep it responsive you would need non trivial filters, eg: Complementary, Kalman.

提交回复
热议问题