Hi everyone,
I write a firmware to read the values from a 6-axis IMU and some force sensors. I want to sample with a frequency of 100-200Hz, to store the data in a buffer and then transmit the buffer using notifications every second. Searching the SDK I found two libraries for buffering, the queue library and the ring buffer. I found that the queue library handles overflow, while the ring buffer does not overwrite old data unless the buffer has been read.
Since this is the first time I implement a data logger, what is your recommendation? What buffer should I use for my case? I am heading towards the queue buffer but I would like to know your advice.
In case this is useful, the IMU and force sensors data is of int16_t type and the payload is 32bytes in total (2bytes x 8 force sensors + 2 bytes x 6 IMU sensor + 4bytes timestamp)
I could provide additional information for my project if this could be useful.
Nick