Welcome to our FTC (First Tech Challenge) Team's Code Master Repository! This repository contains the entire codebase for our robot, including autonomous, teleop, and hardware configuration code.
This repository contains all the code we are using to control our robot for the current FTC season. Our code is written in Java and organized into different modules for autonomous mode, teleop control, and hardware configuration.
- Autonomous Mode: Pre-programmed movements for various challenges.
- TeleOp Mode: Manual control for driving and manipulating the robot during the competition.
- Hardware Configuration: Code to initialize motors, sensors, and other components.
To set up the repository on your local machine:
-
Clone the repository using Git:
https://github.com/CapitalRobotics/Janxs_Brain.git
-
Open the project in Android Studio, as it is built for the FTC SDK.
-
Connect your FTC robot controller device to your development machine.
- Autonomous: Select an autonomous mode from the robot controller app during the autonomous phase of the match.
- TeleOp: Use the gamepad controllers during the driver-controlled phase.
We use a branching strategy to ensure smooth collaboration and protect the main branch from unintended changes. Here's how we manage the workflow:
-
Clone the Repository: Team members clone the main repository:
https://github.com/CapitalRobotics/Janxs_Brain.git
-
Create a Feature Branch: Instead of working directly on the main branch, create a new feature branch for your work:
git checkout -b feature/your-feature-name
-
Branch Protection: The main branch is protected, so no direct commits can be made. All changes must be merged via pull requests (PRs) after code review.
-
Submit a Pull Request: Once your feature is complete, open a pull request to merge your feature branch into the main branch. Your code will go through a review process before being merged.
- Clone the repository and create a feature branch.
- Commit your changes to the feature branch.
- Submit a pull request for review.
- Once approved, your changes will be merged into the main branch.