Accelerometer Low Pass Filtering

前端 未结 2 410
旧时难觅i
旧时难觅i 2020-12-03 01:53

Still on the BigNerdRanch iOS Development book.

In the Accelerometer chapter, they first implement accelerometer tracking but it\'s fairly jumpy. They then suggest t

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-03 02:40

    Since you're working through the Big Nerd Ranch Book - a good idea would be to go on to the Book's discussion forum.

    For more information have a look at the Wikepedia article about low pass filters.

    And for another example of filtering have a look at Apple's AccelerometerGraph example

    Also - think if you take kFilteringFactor to be 0.2 which gives the multipliers for the current value to be 0.8 which is 1 - 0.2, and the multiplier for the new value is 2.0 because it's 0.2 x 10

    I suppose 10 is the scaling factor to give reasonable values.

提交回复
热议问题