Packing data of multiple sensors
I am wondering how I should pack data of multiple sensors i.e. gyroscope & accelerometer.
I intend to sample both at 100 Hz.
Somehow when I streamed gyro data (and only gyro) at 100 Hz without any changes in the settings, I had a lower freq regarding the timestamps, and reducing the max connection interval to 7.5ms solved that issue.
Now I want to stream both gyro and acc and I want them to be packed together. For now, I call the accelerometer and the gyro objects to stream using addRouteAsync inside my board.connectAsync() but the packs I receive are either gyro or acc (which is expected). Now I think there might be a better way to pack data so that each pack has samples of gyro and acc but I honestly do not get the logic of the "sensor fusion" that you talk about often on this topic (I am new to Android).
Can you please support me with some explanation over the correct form of coding regarding my purpose?
Thanks in advance