Skip to content

FRC5892/6243-2026REBUILT

Repository files navigation

KickBack (FRC 6243) - 2026 REBUILT

Build Last Commit License

Java Gradle

Project Indicators

Active indicators:

Open Issues Open PRs

FRC Team 6243 (Energy NERDs') code for the 2026 REBUILT season.

Robot Summary

Stack: WPILib command-based, AdvantageKit, CTRE Phoenix 6, PathPlanner.

  • Swerve drive with field-relative control.
  • AprilTag pose fusion from two PhotonVision-based vision inputs.
  • Separate object camera with mode-based pipeline switching.
  • Shooter with dynamic hood/flywheel targets from shot calculation.
  • Backrollers to introduce controlled and tunable levels of backspin on shots.
  • Feeder/indexer gated on shooter-ready state during shoot command.
  • Subsystems: drive, intake, indexer, shooter, climb, LEDs, vision.
  • Auto chooser includes PathPlanner autos and drive SysId/characterization routines.
  • custom shot calculator inspired by Mechanical Advantage's shot calculator
  • Modified to fit the unique physics of our flywheel

Controls

Controller USB ports:

  • Driver controller: 0
  • Codriver controller: 2

Mappings are fixed in src/main/java/frc/robot/RobotContainer.java.

Driver

Control Action
Left stick X/Y Field-relative translation
Right stick X Rotation
A (hold) Snap-to-target (yaw + hood alignment)
X (press) Stow hood
B (toggle) Toggle intake deploy/retract
Left bumper (hold) Intake in
Right bumper (hold) Intake out
Y (hold) Beach alert LED mode

Codriver

Control Action
Left stick Y Manual hood adjust (default hood command)
A (hold) Snap-to-target (yaw + hood alignment)
Left bumper (toggle) Toggle intake deploy/retract
X (hold) Intake in
B (hold) Intake out
Right bumper (hold) Shoot (flywheel + hood request + gated feed)
Right trigger (hold) Indexer unclog (reverse feed)
D-pad up (hold) Climb up
D-pad down (hold) Climb down
Y (hold) Beach alert LED mode

LED Indicator Priority

Higher rows override lower rows.

Priority State Output
1 Drive motor overheated Flashing white rgb(255,255,255)
2 Drive motor disconnected Flashing orange rgb(255,165,0)
3 Beach alert active Rainbow fade animation
4 Auto-align active Solid red rgb(255,0,0)
5 Intake down Solid green rgb(0,255,0)
6 Hood stowed Solid blue rgb(0,0,255)
7 Default LEDs TBD

Hardware Map (Reference)

IMPORTANT: CAN IDs, bus names, camera names, and IO ports below are reference placeholders. Verify and update to match final robot wiring before running on hardware.

Device Bus / IO Type ID / Port Function / Notes
Climb motor RIO CAN 13 RightClimb
Intake roller RIO CAN 20 IntakeRoller
Slapdown motor RIO CAN 21 Slapdown
Flywheel leader RIO CAN 26 FlywheelRight (left follows in config)
Hood motor RIO CAN 27 Hood
Feeder roller RIO CAN 30 Feeder
Indexer right RIO CAN 31 IndexerRight
Indexer left RIO CAN 32 IndexerLeft (follower of 31)
Pigeon2 Swerve CAN (TunerConstants) 13 Drivetrain gyro
Front Left Drive Swerve CAN (TunerConstants) 2 Swerve module drive motor
Front Left Steer Swerve CAN (TunerConstants) 6 Swerve module steer motor
Front Left Encoder Swerve CAN (TunerConstants) 41 Swerve module azimuth encoder
Front Right Drive Swerve CAN (TunerConstants) 3 Swerve module drive motor
Front Right Steer Swerve CAN (TunerConstants) 7 Swerve module steer motor
Front Right Encoder Swerve CAN (TunerConstants) 42 Swerve module azimuth encoder
Back Left Drive Swerve CAN (TunerConstants) 4 Swerve module drive motor
Back Left Steer Swerve CAN (TunerConstants) 8 Swerve module steer motor
Back Left Encoder Swerve CAN (TunerConstants) 43 Swerve module azimuth encoder
Back Right Drive Swerve CAN (TunerConstants) 5 Swerve module drive motor
Back Right Steer Swerve CAN (TunerConstants) 9 Swerve module steer motor
Back Right Encoder Swerve CAN (TunerConstants) 44 Swerve module azimuth encoder
LED strip PWM 0 Addressable LED strip output
Hood reverse limit DIO 1 Hood reverse travel limit switch
Hood forward limit DIO 2 Hood forward travel limit switch

Vision

  • AprilTag camera names: camera_0, camera_1
  • Object camera name: camera_object
  • Real robot stack: two cameras for AprilTag detection plus one for gamepiece detection (switches to Apriltag during teleop).
  • Object camera pipeline indices:
    • 0: AprilTag
    • 1: Object detection
  • Runtime behavior:
    • autonomousInit(): object camera set to detection pipeline.
    • teleopInit(): object camera set back to AprilTag pipeline.

Setup Checklist

  1. Set drivetrain CAN bus name in src/main/java/frc/robot/generated/TunerConstants.java (replace "Default Name").
  2. Validate all CAN IDs, DIO, and PWM assignments.
  3. Confirm vision device names and object-camera pipeline indices.
  4. Verify hood limit switch polarity and hood calibration.

About

The codebase for KickBack, 6243's robot for the 2026 REBUILT season

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors