Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
0410140
removed a large amount of unused autos and trajectories that we are n…
DylanTaylor29 Mar 12, 2026
b1d51ae
created new paths and updated autos to use them
DylanTaylor29 Mar 12, 2026
7179667
updated Rho.chor to include the actual robot size and adjust the sett…
DylanTaylor29 Mar 13, 2026
272c7af
updated paths to use correct pose constants for transitions
DylanTaylor29 Mar 14, 2026
7adf6d8
add intake shake command
DylanTaylor29 Mar 14, 2026
8e105e5
Merge branch 'main' of https://github.com/TripleHelixProgramming/Rebu…
caparomula Mar 17, 2026
53340a1
formatting changes
DylanTaylor29 Mar 17, 2026
49015a4
fixed naming issues in the autos
DylanTaylor29 Mar 17, 2026
369d063
Added shake intake command to the autos
DylanTaylor29 Mar 18, 2026
114cab8
updated one path to fix possible issue hitting the intake into the tr…
DylanTaylor29 Mar 18, 2026
1fbb1e9
Merge branch 'main' of https://github.com/TripleHelixProgramming/Rebu…
nlaverdure Mar 18, 2026
684a9e4
Refactor auto routines and add Feeder command factories
nlaverdure Mar 18, 2026
f40be15
Add DriveCommands.getStopCommand and use in auto routines
nlaverdure Mar 18, 2026
3e3e54e
formatting
nlaverdure Mar 18, 2026
c3e70e9
adjusted BlueLeftTransitionToNZ trajectory
DylanTaylor29 Mar 19, 2026
3b75630
made some adjustments to auto speeds
DylanTaylor29 Mar 19, 2026
0bcbc9d
Merge branch 'main' of https://github.com/TripleHelixProgramming/Rebu…
nlaverdure Mar 19, 2026
7b434b3
adjusted values. IMPORTANT: (kp controler bust be between 7.8 - 8.2) …
BenGamer3 Mar 19, 2026
cbebaf3
Merge branch 'AutoDevelopmentAgain' of https://github.com/TripleHelix…
BenGamer3 Mar 19, 2026
a5698e8
Merge branch 'main' of https://github.com/TripleHelixProgramming/Rebu…
nlaverdure Mar 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 0 additions & 84 deletions src/main/deploy/choreo/2026.chor

This file was deleted.

661 changes: 405 additions & 256 deletions src/main/deploy/choreo/BlueLeftNeutralZone.traj

Large diffs are not rendered by default.

419 changes: 419 additions & 0 deletions src/main/deploy/choreo/BlueLeftNinetyNeutralZone.traj

Large diffs are not rendered by default.

170 changes: 0 additions & 170 deletions src/main/deploy/choreo/BlueLeftToDepot.traj

This file was deleted.

650 changes: 410 additions & 240 deletions src/main/deploy/choreo/BlueLeftTransitionToNZ.traj

Large diffs are not rendered by default.

690 changes: 413 additions & 277 deletions src/main/deploy/choreo/BlueRightNeutralZone.traj

Large diffs are not rendered by default.

423 changes: 423 additions & 0 deletions src/main/deploy/choreo/BlueRightNinetyNeutralZone.traj

Large diffs are not rendered by default.

155 changes: 0 additions & 155 deletions src/main/deploy/choreo/BlueRightToOutpost.traj

This file was deleted.

660 changes: 409 additions & 251 deletions src/main/deploy/choreo/BlueRightTransitionToNZ.traj

Large diffs are not rendered by default.

174 changes: 0 additions & 174 deletions src/main/deploy/choreo/BlueStartToDepot.traj

This file was deleted.

169 changes: 0 additions & 169 deletions src/main/deploy/choreo/BlueStartToOutpost.traj

This file was deleted.

741 changes: 452 additions & 289 deletions src/main/deploy/choreo/RedLeftNeutralZone.traj

Large diffs are not rendered by default.

436 changes: 436 additions & 0 deletions src/main/deploy/choreo/RedLeftNinetyNeutralZone.traj

Large diffs are not rendered by default.

175 changes: 0 additions & 175 deletions src/main/deploy/choreo/RedLeftToDepot.traj

This file was deleted.

648 changes: 405 additions & 243 deletions src/main/deploy/choreo/RedLeftTransitionToNZ.traj

Large diffs are not rendered by default.

782 changes: 458 additions & 324 deletions src/main/deploy/choreo/RedRightNeutralZone.traj

Large diffs are not rendered by default.

434 changes: 434 additions & 0 deletions src/main/deploy/choreo/RedRightNinetyNeutralZone.traj

Large diffs are not rendered by default.

157 changes: 0 additions & 157 deletions src/main/deploy/choreo/RedRightToOutpost.traj

This file was deleted.

618 changes: 381 additions & 237 deletions src/main/deploy/choreo/RedRightTransitionToNZ.traj

Large diffs are not rendered by default.

169 changes: 0 additions & 169 deletions src/main/deploy/choreo/RedStartToDepot.traj

This file was deleted.

159 changes: 0 additions & 159 deletions src/main/deploy/choreo/RedStartToOutpost.traj

This file was deleted.

46 changes: 23 additions & 23 deletions src/main/deploy/choreo/Rho.chor
Original file line number Diff line number Diff line change
Expand Up @@ -66,64 +66,64 @@
"config":{
"frontLeft":{
"x":{
"exp":"11 in",
"val":0.2794
"exp":"11.25 in",
"val":0.28575
},
"y":{
"exp":"11 in",
"val":0.2794
"exp":"9.75 in",
"val":0.24765
}
},
"backLeft":{
"x":{
"exp":"-11 in",
"val":-0.2794
"exp":"-11.25 in",
"val":-0.28575
},
"y":{
"exp":"11 in",
"val":0.2794
"exp":"9.75 in",
"val":0.24765
}
},
"mass":{
"exp":"125 lbs",
"exp":"130 lbs",
"val":56.69904625
},
"inertia":{
"exp":"6 kg m ^ 2",
"val":6.0
},
"gearing":{
"exp":"6.5",
"val":6.5
"exp":"6.75",
"val":6.75
},
"radius":{
"exp":"2 in",
"val":0.0508
},
"vmax":{
"exp":"6000 RPM",
"val":628.3185307179587
"exp":"3500 RPM",
"val":366.5191429188092
},
"tmax":{
"exp":"1.2 N * m",
"val":1.2
"exp":"0.25 N * m",
"val":0.25
},
"cof":{
"exp":"1.5",
"val":1.5
"exp":"1",
"val":1.0
},
"bumper":{
"front":{
"exp":"16 in",
"val":0.4064
"exp":"17.938 in",
"val":0.4556251999999999
},
"side":{
"exp":"16 in",
"val":0.4064
"exp":"16.438 in",
"val":0.41752519999999993
},
"back":{
"exp":"16 in",
"val":0.4064
"exp":"17.938 in",
"val":0.4556251999999999
}
},
"differentialTrackWidth":{
Expand Down
361 changes: 0 additions & 361 deletions src/main/deploy/choreo/traversingTheBump.traj

This file was deleted.

11 changes: 3 additions & 8 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -772,13 +772,9 @@ public void bindXboxOperator(int port, DriverController driver) {
// xboxOperator.y().and(() -> hopper.isDeployed()).whileTrue(intake.getReverseCommand());

// Feeder
xboxOperator
.a()
.whileTrue(Commands.startEnd(feeder::spinForward, () -> {}, feeder).withName("Advance"));
xboxOperator.a().whileTrue(feeder.getSpinForwardCommand());

xboxOperator
.x()
.whileTrue(Commands.startEnd(feeder::reverse, () -> {}, feeder).withName("Reverse"));
xboxOperator.x().whileTrue(feeder.getReverseCommand());

// Desaturate turret and advance feeder
xboxOperator.rightBumper().whileTrue(createDesaturateAndShootCommand(driver));
Expand Down Expand Up @@ -835,8 +831,7 @@ private Command createDesaturateAndShootCommand(DriverController driver) {
allianceSelector::fieldRotated)
.withName("Desaturate turret"),
Commands.sequence(
Commands.waitUntil(launcher::isTurretDesaturated),
Commands.startEnd(feeder::spinForward, () -> {}, feeder).withName("Advance")));
Commands.waitUntil(launcher::isTurretDesaturated), feeder.getSpinForwardCommand()));
}

private static void logHIDs() {
Expand Down
25 changes: 22 additions & 3 deletions src/main/java/frc/robot/auto/AutoMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,24 @@
import choreo.auto.AutoTrajectory;
import choreo.trajectory.SwerveSample;
import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.Commands;
import frc.robot.commands.DriveCommands;
import frc.robot.subsystems.drive.Drive;
import frc.robot.subsystems.feeder.Feeder;
import frc.robot.subsystems.intake.Intake;
import java.util.Optional;

public abstract class AutoMode {
private final AutoFactory autoFactory;

public AutoMode(Drive drivetrain) {
protected final Drive drive;
protected final Feeder feeder;
protected final Intake intake;

public AutoMode(Drive drivetrain, Feeder feeder, Intake intake) {
this.drive = drivetrain;
this.feeder = feeder;
this.intake = intake;
autoFactory =
new AutoFactory(
drivetrain::getPose,
Expand All @@ -34,10 +45,18 @@ public AutoFactory getAutoFactory() {
public Optional<Pose2d> getInitialPose() {
return getInitialTrajectory().getInitialPose();
}
;

public SwerveSample[] getLoggableTrajectory() {
SwerveSample[] trajArray = new SwerveSample[0];
return getInitialTrajectory().getRawTrajectory().samples().toArray(trajArray);
}

protected Command stopDrive() {
return DriveCommands.getStopCommand(drive);
}

protected Command shakeAndFeed(double timeoutSeconds) {
return Commands.parallel(feeder.getSpinForwardCommand(), intake.getShakeIntakeCommand())
.withTimeout(timeoutSeconds);
}
}
66 changes: 0 additions & 66 deletions src/main/java/frc/robot/auto/B_DepotAuto.java

This file was deleted.

42 changes: 12 additions & 30 deletions src/main/java/frc/robot/auto/B_LeftTrenchAuto.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,23 @@
import frc.robot.subsystems.launcher.Launcher;

public class B_LeftTrenchAuto extends AutoMode {
Drive drive;
// Hopper hopper;
Feeder feeder;
Intake intake;
Launcher launcher;
private final Launcher launcher;
private final AutoRoutine routine;
private final AutoTrajectory blueLeftNeutralZone;
private final AutoTrajectory blueLeftTransitionToNZ;

public B_LeftTrenchAuto(
Drive drivetrain,
// Hopper hopperSubsystem,
Feeder feederSubsystem,
Intake intakeSubsystem,
Launcher launcherSubsystem) {
super(drivetrain);
drive = drivetrain;
// hopper = hopperSubsystem;
feeder = feederSubsystem;
intake = intakeSubsystem;
super(drivetrain, feederSubsystem, intakeSubsystem);
launcher = launcherSubsystem;
routine = getAutoFactory().newRoutine("B_LeftTrenchAuto");
blueLeftNeutralZone = routine.trajectory("BlueLeftNeutralZone");
blueLeftTransitionToNZ = routine.trajectory("BlueLeftTransitionToNZ");
}

// Define routine
AutoRoutine routine = super.getAutoFactory().newRoutine("B_LeftTrenchAuto");

// Load trajectories
AutoTrajectory blueLeftNeutralZone = routine.trajectory("BlueLeftNeutralZone");
AutoTrajectory blueLeftTransitionToNZ = routine.trajectory("BlueLeftTransitionToNZ");

@Override
public String getName() {
return "BlueLeftTrenchAuto";
Expand All @@ -57,28 +47,20 @@ public AutoRoutine getAutoRoutine() {
blueLeftNeutralZone.resetOdometry(),
DriveCommands.getChassisAimingCommand(drive, launcher::getTurretDesaturationDelta)
.withTimeout(1.5),
Commands.startEnd(feeder::spinForward, () -> {}, feeder).withTimeout(3.0),
Commands.runOnce(feeder::stop, feeder),
feeder.getSpinForwardCommand().withTimeout(3.0),
Commands.parallel(
blueLeftNeutralZone.cmd(), intake.getDeployCommand().withTimeout(10.0))));

blueLeftNeutralZone
.done()
.onTrue(
Commands.sequence(
Commands.runOnce(drive::stop, drive),
Commands.startEnd(feeder::spinForward, () -> {}, feeder).withTimeout(5.0),
Commands.runOnce(feeder::stop, feeder),
stopDrive(),
shakeAndFeed(5.0),
Commands.parallel(
blueLeftTransitionToNZ.cmd(), intake.getDeployCommand().withTimeout(5.0))));

blueLeftTransitionToNZ
.done()
.onTrue(
Commands.sequence(
Commands.runOnce(drive::stop, drive),
Commands.startEnd(feeder::spinForward, () -> {}, feeder).withTimeout(5.0),
Commands.runOnce(feeder::stop, feeder)));
blueLeftTransitionToNZ.done().onTrue(Commands.sequence(stopDrive(), shakeAndFeed(5.0)));

return routine;
}
Expand Down
Loading
Loading