team401 / 2024-Robot-Code

Competition code for our 2024 robot
Other
6 stars 0 forks source link

Configure Control Scheme With JSON Files #85

Open charlesmackenzie opened 5 months ago

charlesmackenzie commented 5 months ago

Purpose Manually configuring robot controls in RobotContainer is often cumbersome, and doesn't easily allow for multiple controller configurations (eg: single gamepad, two sticks + gamepad). It would be beneficial to save controller configurations in our deploy folder, and select one by setting a variable in constants.

Project Scope

Optional We aren't likely to need to change controller configurations at runtime, so we could feasibly extend the build system to generate a human input class from a JSON at buildtime, instead of deploying all our configurations to the robot and reading one at init. I should make it clear that I'm not saying this is a good use of our time.

charlesmackenzie commented 4 months ago

WPIlib seems to use FasterXML/jackson to parse JSON files.

jkleiber commented 4 months ago

This is not looking likely to go in prior to Blacksburg, so I am moving this to the Falls Church milestone