Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON to ParamDb.dat file converter #3163

Open
zimri-leisher opened this issue Jan 27, 2025 · 3 comments
Open

JSON to ParamDb.dat file converter #3163

zimri-leisher opened this issue Jan 27, 2025 · 3 comments
Assignees

Comments

@zimri-leisher
Copy link
Collaborator

zimri-leisher commented Jan 27, 2025

F´ Version 3.5.1
Affected Component PrmDb

Feature Description

There should be a converter script which allows you to write paramdb files in human-readable form, e.g. json.

Rationale

We want to be able to set initial values of parameters based on a config file, not necessarily based on the .fpp files, which are set at compile time.

Potentially, also add a command in the PrmDb to reload the database. This would probably involve some autocoder work, so out of the scope of this ticket.

Potentially, also add an option to generate a sequence of commands instead of a dat file.
Potentially, also add an option to implicitly write defaults.
Potentially, also add an option to generate a "default" json file from the dictionary.

@zimri-leisher
Copy link
Collaborator Author

@LeStarch please assign to me

@zimri-leisher
Copy link
Collaborator Author

Impl note: should be under a fprime-params sub command

@zimri-leisher
Copy link
Collaborator Author

zimri-leisher commented Jan 28, 2025

I know I said it would take me a while, but I had a bit of time to do it early, so I made a PR for this: nasa/fprime-gds#187
@LeStarch @timcanham

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

No branches or pull requests

1 participant