Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
about low pass filter
05-17-2016, 08:05 AM (This post was last modified: 05-17-2016 08:06 AM by primeking.)
Post: #1
Question about low pass filter
code:
estimated_speed_filtered = estimated_speed_filtered * 0.95 + (float)estimated_speed * 0.05; // low pass filter on estimated speed



hi,I don't understand ,do you know how to understand?
Find all posts by this user
Quote this message in a reply
06-14-2016, 06:28 AM
Post: #2
RE: about low pass filter
You can think of it this way:

estimated_speed_filtered consist of two components: (1)the previous value of estimated_speed_filtered and (2)the estimated_speed derived from current iteration. There is a higher weightage on the previous estimated value and a very low weightage on the current estimated value. Now imagine this scenario. If the estimated speed were to change drastically during the current iteration, it would not have much contribution to the final estimated speed due to the low weightage (0.05). Hence, rapid speed changes are filtered and only gradual speed changes "passes through". Therefore, you can think of the above equation as a low pass filter.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)