Skip to content

improve object dictionary architecture #48

Description

@iac26

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions