william.henley
I'm not sure if I stumbled upon a bug here or I'm misunderstanding something. Basically what I'm seeing is if I apply a moving average filter to a channel in 2 different ways within Pi Toolbox 12.3 I get different results.
  1. Filter lateral accel channel with standard "moving average filter" with range of 0.5s
  2. Filter lateral accel channel with math function
    • movAverage( [ChassisAccelYIMU], 0.5, Ignore)
I have attached a picture comparing the outputs.

As an aside I filtered the channel using an external c# library and it matched #1 above exactly. 

Could someone confirm this is a bug or clarify why these calculations should be different?
Reply 0 0
william.henley
Figure out what I had going on here. The movAverage() function inherits the global channel filter. So since I the global channel settings had a filter on lateral accel the filtered channel was then double filtered by the movAverage() function.

Not-intuitive that it would behave this way but that is good to know for the future.
Reply 0 0
Reply