PeakSat / OBC-EQM-Software

MIT License
1 stars 0 forks source link

Store parameters values on MRAM #8

Open Sourland opened 4 months ago

giatats commented 4 months ago

@Sourland Apo pou vlepw ta parameters pou tha kanoume store?

Sourland commented 4 months ago

@giatats One of the main uses of MRAM is to hold our parameter values. The parameter management consists of the following:

  1. Every parameter is of Parameter Class It has a datatype and a unique ID for distictions. The unique ID and the datatype can be fetched by our Mission Database
  2. All of these parameters are stored and initialized in this file
  3. The parameters are managed by the parameter service
  4. To combine a parameter with i the parameters belong to a Parameter Map and it is initialized for every platform.
  5. We have to cross-check the existing parameters and IDs to match our mission database. Something similar is already done to the old obc repo

What we have to do is discuss the approach on storing the values on MRAM. We may have to override some functions and reimplement them to integrate MRAM R/W operations. The plan of action I propose is:

  1. Create discrete READ/WRITE/DELETE functions for MRAM
  2. Decide on how much space each parameter will have (we have 8KiB available for holding the entire map)
  3. Override the set and get functions of the parameter class to utilize MRAM functions
  4. Delete the MRAM task.