Open sbow opened 3 days ago
@sbow I think that's a great idea! I do have a json file in using to store pid controller parameters in the SquirrelDefender folder. Did you check that out? I already have a file called parameters.cpp where I have the functionality to parse that json file. But I didn't move all of the parameters to that file. We can move them all there. I'm also using a different json library. But I'm open to the one you suggested. I want it to be common for the windows and edge side if possible. What do you think?
I did fork the repo of that json library in case we want to use that in our project so we can always have a working version that we control.
Why:
example, move "calibrations" to a json file like resolution in this snippet:
Use this:
https://github.com/nlohmann/json
Like this:
1st creat a "config" struct for use elsewhere in the program:
then refer to it elsewhere like: