03-19-2019 03:54
03-19-2019 03:54
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 Answer03-19-2019 08:10
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.
03-19-2019 08:10
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 Answer03-19-2019 08:10
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.
03-19-2019 08:10
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 Answer03-19-2019 08:12
03-19-2019 08:12
Thanks for the quick reply. I would also highly appreciate such a feature.
Best Answer07-10-2019 06:23
07-10-2019 06:23
Any Updates to this? I need to have the gyro and acc reading data synced together at 100hz.
Best Answer04-16-2022 02:26
04-16-2022 02:26
hello, can anyone help me with my project? its related to this topic, i can pay. thanks