Open
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR implements initial swerve drive functionality for an FRC robot with a comprehensive state machine architecture. The implementation includes custom math utilities, swerve module control, and autonomous path following capabilities.
Key changes:
- Adds complete swerve drive subsystem with Phoenix 6 motor controllers and CANcoders
- Implements custom Vector and PID math utilities for drive calculations
- Creates state machine architecture for coordinating robot subsystems
- Includes path following and point-to-point navigation commands
Reviewed Changes
Copilot reviewed 29 out of 35 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| vendordeps/*.json | Adds vendor dependencies for Phoenix 6, AdvantageKit, and WPILib commands |
| src/main/java/frc/robot/tools/math/* | Custom math utilities including Vector class and PID controller |
| src/main/java/frc/robot/tools/SwerveModule.java | Individual swerve module control with motor configuration and drive logic |
| src/main/java/frc/robot/subsystems/Drive.java | Main drive subsystem with swerve kinematics and state machine |
| src/main/java/frc/robot/subsystems/Superstructure.java | High-level state machine coordinator |
| src/main/java/frc/robot/commands/* | Commands for autonomous driving and IMU zeroing |
| src/main/java/frc/robot/*.java | Main robot class, container, and operator interface |
…the path tool work
RishabhK12
approved these changes
Aug 2, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fully working drive code with a state machine.