Make configuration of parameters loaded from file
Configuration parameters (constants) are now stored locally in the DataView (ASN). This is a problem as changing a value requires full recompilation of the system, which takes a lot of time on the field.
We need to load the constants from an external file, dynamically, when initializing the system. We provide a block that when initialized will load a dumped configuration if any is found. To save time, we can generate a dump with a python script, that can read/write from/to a human-readable file.
To flow is the following:
- When the controller starts, it tries to load the current configuration from a binary dump. If fails, it will create and generate a default dump.
- The configuration is held by a specific block, which the others will query when starting to hold it
There is then a python script which can convert a human readable configuration to a binary dump, and viceversa can generate a human readable form from the binary dump.