-
Notifications
You must be signed in to change notification settings - Fork 1
Configuration
There are two main ways to add and edit configurations through YAML. One is for robot-specific configurations while the other is for controls configurations.
Located in "Zero/src/main/resources/yaml", a configuration file of the format <ROBOT_NAME>.config.yml can be used to configure a specified robot, where the ROBOT_NAME is the robot name environment variable that is set into .profile file on the roboRIO.
To configure this environment variable a secure shell must be utilized to connect to the roboRIO after which running the following command will let you view the .profile file.
$ vi .profileTyping "i" will switch to insert mode and then type "#export ROBOT_NAME=<insert_name_of_choice>" will allow the configuration of the ROBOT_NAME environment variable. Typing ":+w+q+enter" will write the changes and quit the file.
Each robot configuration file also requires an associated control board which is also configured through YAML in the "Zero/src/main/resources/yaml/controlboard" directory. To add a controlboard configuration with a name of "test," simply add a new file titled test.controlboard.config.yml following the associated json schema structure located in "Zero/src/main/resources/schemas". Note: the name "test" is being used for example purposes and can be replaced with any name of choice. For further information, visit the page on Controls.
2023 - FRC Team 1816 The Green Machine