Switch sensor-streams to use Stream Buffers
The current sensor-stream implementation has quite a few issues. It should be refactored to use Stream Buffers instead of the current queue-based implementation. There should also be an overflow behavior where the oldest values are discarded.
In the process of refactoring, the queue-writing (and creation) should be changed to no longer use the FreeRTOS API directly, but instead happen via some functions defines as part of the stream module. This way, future changes will be much easier.
The following discussion from !316 (merged) should be addressed:
-
@rahix started a discussion: (+6 comments) The MR is ready to be merged, but I will hold off until the I2C race which is triggered by this is fixed (the upstream version also triggers it, but not as quickly).
cc @flo_h