How to implement a LowPass Filter for the accelerometer?
Hi,
I'm trying to implement a low pass filter for all 3 axis of the accelerometer. For the moment I'm just trying to do it for the z-axis, however with very little success. Here is the Builder sequence I use:
DataProcessorController=(DataProcessor)this.MwController.getModuleController(Module.DATA_PROCESSOR);
DataProcessorController.removeAllFilters();
DataProcessorController.addFilter(LoggingTrigger.ACCELEROMETER_Z_AXIS, new FilterConfigBuilder.LowPassBuilder()
.withSampleSize((byte)10)
.withInputSize((byte)2)
.withOutputSize((byte)2)
.build());
However when I look at the data it seems to be just noise. I could'n find an example. What are the correct parameters for the LowPassBuilder?
This discussion has been closed.
Comments