Streaming sensor fusion data from 2 devices and getting different sampling frequencies
Hi, I am trying to simultaneously stream Sensorfusion data from 2 devices and saving the data in files.
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #4f8187; background-color: #ffffff}
span.s1 {color: #000000}
span.s2 {color: #31595d}
span.s3 {color: #272ad8}
I noticed that one device is streaming at 100HZ and the other at around 55-60HZ. How can I fix this ? I want the same sampling frequency.
Here is what I have specified for both the devices:
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #4f8187; background-color: #ffffff}
span.s1 {color: #000000}
span.s2 {color: #31595d}
span.s3 {color: #272ad8}
device.sensorFusion?.mode = .nDoF
device.accelerometer!.sampleFrequency = 50.0;
Thanks!
This discussion has been closed.
Comments