This past year our team used a file on the roborio which we would read in and load our robot constants into when the robot code started. However, the code style we used was clunky because we had to have the file uploaded to the Rio, the header file which held all the variables, and the cpp file which loaded in all the constants from the file.
This led to a lot of variable rewriting and name duplication which honestly ended up being more work to confirm everything was correctly written.
For reference we use C++ and we used an INI file format.
Are there any other ways of doing this that I am missing here?