I am trying to implement a research paper for my project and there is a formula which I am failing to interpret:
According to the research paper, we extract the static acceleration component for each axis μi,t (i=X, Y, Z) by using a running mean filter (the formula), where t is time index, win_size is the window size, and Ai,t∗ is the acceleration data, respectively.
The research paper using MPU6050 to implement this formula. My question is how do I calculate these values using MPU6050. I am currently using MPU6050_Light.h library to calculate acceleration values and I have no idea where to move from here.
Help would be greatly appreciated.
0 to win_size - 1
so that they are compatible with C arrays. Then cycle around the array putting a newfloat
into it at the current index while updating the sum and rolling average. Then update the index.