Skip to content

Dynamic initialisation/data types? #67

Answered by rlogiacco
JoeEarlam asked this question in Q&A
Discussion options

You must be logged in to vote

Functional speaking I would go for one single shared buffer where all sensors' data get appended and then processed, but without revolutionizing the approach, what might be achievable is to have circular buffers being statically sized and have their processing occur at dynamically manged frequencies to account for higher usage.

This way you can process more frequently the buffers which get filled up more quickly (under dimensioned) to avoid data loss.
To account for differences in data size you might want to use a dynamic approach: store in the buffers only the pointers to the data structures, this will make your approach more complex because you will have to allocate and deallocate the m…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JoeEarlam
Comment options

You must be logged in to vote
1 reply
@rlogiacco
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants