Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis PR integrates PathPlanner autonomous path planning into an FRC robot codebase. It introduces a new CommandSwerveDrivetrain subsystem with AutoBuilder configuration, adds joystick control bindings for field-centric driving, includes a DriveToPoint command for point-to-point navigation, enables Epilogue data logging, and provides PathPlanner configuration files and vendor dependencies. Changes
Sequence Diagram(s)sequenceDiagram
participant RobotInit as Robot Constructor
participant DLM as DataLogManager
participant Epilogue as Epilogue
participant Container as RobotContainer
participant AutoBuilder as PathPlanner<br/>AutoBuilder
participant Drivetrain as CommandSwerveDrivetrain
RobotInit->>DLM: start()
RobotInit->>Epilogue: bind(this)
RobotInit->>Container: create RobotContainer
Container->>AutoBuilder: load RobotConfig from settings
Container->>AutoBuilder: configure PPHolonomicDriveController<br/>with PID constants
Container->>AutoBuilder: configure path-flipping logic
Container->>Drivetrain: applyRequest(field-centric supplier)
Note over Container: Schedule PathPlanner warmup
Note over Container: Populate autoChooser from<br/>AutoBuilder paths
sequenceDiagram
participant Scheduler as Command Scheduler
participant RobotContainer as RobotContainer
participant Drivetrain as CommandSwerveDrivetrain
participant SwerveRequest as SwerveRequest<br/>FieldCentric
Scheduler->>RobotContainer: Poll joystick axes
RobotContainer->>Drivetrain: apply field-centric<br/>velocities (with deadband)
Scheduler->>Drivetrain: execute()
Drivetrain->>SwerveRequest: update with<br/>joystick speeds
SwerveRequest->>Drivetrain: apply to modules
alt Autonomous
Scheduler->>Drivetrain: execute auto command<br/>from autoChooser
Drivetrain->>Drivetrain: apply operator<br/>perspective (once)
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~70 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
e1c58c5 to
066dbd5
Compare
b2a21da to
b53f462
Compare
Summary by CodeRabbit