I am working on a project where i need to store as fast I can following :
1 - Acceleration on X
2 - Acceleration on Y
3 - Acceleration on Z
4 - timestamp
5 - A value from some other sensor
Because I need to get these as fast as I can I am thinking to not do any calculation while acquire values and just store them for 30 -60 seconds and then when the "test" is complete to compute calculations. My question is if will be better to create 5 arrays and put these values there or create a matrix and store values there. I need these values to be stored like they are "connected" e.g. on reading 1 i get 5 values and put them on array[0] , then on reading 1 and so on Also an important thing to mention, this will run on a esp32.
Thank you