-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f2604c
commit 6684ed4
Showing
3 changed files
with
81 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The config directory is used to support multiple robot versions using the same code base. | ||
|
||
# 2023 | ||
We tried to support multiple robots using the same code base by: | ||
* Creating a JSON config file specific to each robot | ||
* Loading the JSON config file by detecting the RoboRio MAC Address | ||
|
||
Shortcomings: | ||
* No way to share common/default settings. If a new setting was added, it needed to be added to all config files, otherwise a runtime error could occur. | ||
* JSON does not support comments, so difficult to document important information for certain configurations | ||
* Loading/parsing the JSON file was slow | ||
* When coding, difficult to determine which/where the config setting source | ||
* Difficult to simulate robot functionality | ||
|
||
# 2024 | ||
We had 3 different robots with different capabilities for dev/testing purposes: | ||
|
||
1. Sherman: Tank Drive + Initial Arm Prototype | ||
2. Phoenix: Initial Swerve Drive + Vision Prototype | ||
3. Inferno: Final Robot | ||
|
||
A "RobotConfig" class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Directory Structure | ||
* [deploy](deploy): Config files, resources, etc that need to be stored directly on the actual robot. These can be read using standard Java File I/O calls | ||
* [java/frc/robot](java/frc/robot): Location of the robot's actual source code | ||
* [java/frc/robot](java/frc/robot): Location of the robot's actual source code |