Hey everyone,
I am developing an app on Fitbit Ionic which needs accelerometer and gyroscope data. I am using the built in sensor APIs with a sampling rate of 20 Hz with a batch size of 20. My problem is that if I do this:
acc.start() gyro.start()
there is some asynchronity between the individual readouts of the sensors. Is there a way to synchronize them such that the gyro evaluates at the exact same timestamps as the accelerometer?
If not, what workaround would you suggest? My idea would be to check whether the initial readout of a gyro batch was in the same second as the corresponding accelerometer batch and then "glue" them together.
I appreciate any help or suggestions.
Best
Simon
Answered! Go to the Best Answer.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
It's come up before and I have a feature suggestion tracked internally for this.
I think the only way would be to merge the data into another array as you suggested.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.