Hello,
I am trying to get a precise instant acceleration value,
I tried to calculate the average acceleration value / sec, but I found an abnormal value!
The CircleOS calls the MEMS_Handler() through the TIM2_IRQHandler() which is configured by TIM_Configuration(); and it’s period is set to 256;
I tried to use the predefined filters, F4, F16, F64 and F256, but, the most appropriate filter was the F256 >>8 and did not give me very precise values…
I have established the filters’ formulas, but I did not find any idea about these choices yet!
I have explored the N_filtering variable of the mems.c, to sum up each 256 values, and to divide them by 256 (then, resetting the N_filtering to 0), but, these values are not very precise!
Have you any idea or comment?
Thanks
Last edited by kbe (2008-05-26 08:21:55)