MetaMotion R - Sensor Fusion Slower Sample Rate
I am using Euler angles in MetaMotion-R to track head orientation in a sitting posture.
I was trying to change the streaming frequency of sensor fusion (NDoF) but I'm facing a couple of issues.
The default values for NDoF mode are Acc = 100Hz, Gyro = 100Hz, and** Mag = 25Hz**
I attempted to change the C modules that are responsible for the sensor fusion mode (SensorFusionBoschImpl.class):
To be specific, I tried to change the ODR values to Acc = 25Hz, Gyro = 25Hz, and** Mag = 6Hz **as shown below:
After building the app and testing on the phone, it didn't show any difference in the output (data kept outputting with the same default rate).
So I tried to apply a lowpass filter to the Euler angles stream (to create an averaging window):
That compiled okay but I stopped receiving values completely from my Euler angles stream...
**How can I decrease the frequency of Euler angles to avoid oversampling?
Is there a different approach to create an averaging window for my Euler angles samples?