The object dictionary is a centralized way of storing the rocket data in a synchronized and thread safe way.
For now, new objects are pushed to a queue and and a worker thread will consume them and store them in memory.
Any other thread can thus read the last stored object of any type.
This OD, only works in the CM4 coprocessor, For the main processor to access objects, some stuff was hacked together.
proposed improvements
- Properly propagate all objects also to the CA7 main processor.
- Create a mechanism of subscription to an object -> any subscriber can then wait for an object to be updated and automatically be notified. The notification could happen either as a callback or as a semaphore-like release.
- change the declaration of objects (macros are maybe not the best) -> consider using cpp templates or making the user write a serializer/deserializer
The object dictionary is a centralized way of storing the rocket data in a synchronized and thread safe way.
For now, new objects are pushed to a queue and and a worker thread will consume them and store them in memory.
Any other thread can thus read the last stored object of any type.
This OD, only works in the CM4 coprocessor, For the main processor to access objects, some stuff was hacked together.
proposed improvements