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

Better constants management (config files?) #142

Open
calebchalmers opened this issue Sep 12, 2024 · 0 comments
Open

Better constants management (config files?) #142

calebchalmers opened this issue Sep 12, 2024 · 0 comments
Assignees
Labels
feature New feature
Milestone

Comments

@calebchalmers
Copy link
Contributor

There are a lot of constants for our robots and each type has a full set of definitions. Considering how much overlap there is between robot types, could we generalize more? Can we use a schema?

Also, robots might have the need for constants relevant only to them, but currently, those constants must be defined for all robot types in order to avoid compilation errors.

One option would be to have a pre-compilation script which takes a config file (perhaps YAML or JSON) and then generates a C++ header with the relevant constants.

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

No branches or pull requests

3 participants