-
Notifications
You must be signed in to change notification settings - Fork 1
Setup New Robot Repo
Armaan Gomes edited this page Aug 9, 2023
·
2 revisions
** NOTE: This should only be done once at the beginning of build season by the tech leads and whenever a new robot project is needed**
- Open Wpilib vscode
- Control + Shift + P Create new project
- Fill out all fields
- For the select a base folder create a new folder with the project name and select that
- Top settings template java TimedRobot
- Press generate project
- Cd into the base folder (the project name folder the highest level one)
- run git init
- git add .
- git commit -m "initialize"
- Open github desktop
- Under repository click add
- Add existing repo
- Select the the main folder
- Publish to github and select the organization as HHS-Team670
- Open the most recent robot's code
- Copy paste the contents of vendordeps from the previous repo into the new repo
- Open the build.gradle from the new repo and change JAVA_11 to JAVA_17
- Change the ROBOT_MAIN_CLASS to "frc.team670.robot.Main"
- Create the team670 folder as a subfolder of frc
- Move the robot folder into the team670 folder
- CD into the team670 folder in terminal
- Run git submodule add https://github.com/HHS-Team670/MustangLib
- Create a constants folder as a subfolder of robot
- Create a file RobotConstants.java which extends RobotConstantsBase
- Fill out relevant constants (or leave blank)
- Copy paste the OI.java from the previous repo into the constants folder
- Remove all button assignments
- Copy paste field constants if necessary
- Copy paste everything else you need
- git add .
- git commit -m "set up repo"
- git push
- Go to github.com
- Find the repo
- MustangLib will probably be capitalized
- Reclone the repo (from scratch)
- git mv MustangLib mustnaglib
- git mv mustnaglib mustanglib
- git add .
- git commit -m "fixed mustanglib"
- git push
- Delete ExampleSubsystem.java and Constants.java
- Replace RobotContainer.java and Robot.java from the new repo with ones from the old repo.
- Fix all errors in Robot Container and remove anything that does not make sense
- Delete ExampleCommand.java and Autos.java
- Build
- git add .
- git commit -m "removed examples and updated robot container"
- git push