Skip to content

Commit

Permalink
taxi back!
Browse files Browse the repository at this point in the history
  • Loading branch information
bbdriverstation2 committed Mar 8, 2025
1 parent 4dc48b7 commit 179912e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ public RobotContainer() {
// autoChooser.addRoutine("OneL4CoralMid", AutoSubsystem::OneL4CoralMidRoutine);
autoChooser.addCmd("Score1L4Coral", autoSubsystem::OneL4Score);
autoChooser.addCmd("nothing", Commands::none);
autoChooser.addCmd("TaxiBack", autoSubsystem::TaxiBack);
// autoChooser.addCmd("DriveSysIDQuasistaticForward", () -> driveSubsystem.sysIdQuasistatic(SysIdRoutine.Direction.kForward));
// autoChooser.addCmd("DriveSysIDQuasistaticReverse", () -> driveSubsystem.sysIdQuasistatic(SysIdRoutine.Direction.kReverse));
// autoChooser.addCmd("DriveSysIDDynamicForward", () -> driveSubsystem.sysIdDynamic(SysIdRoutine.Direction.kForward));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/constants/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* constants are needed, to reduce verbosity.
*/
public final class Constants {
public static final Mode currentMode = Mode.REPLAY;
public static final Mode currentMode = Mode.REAL;
public static final double commandTimeout = 5;
public static enum Mode {
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,18 @@ public Command OneL4Score() {
Commands.waitSeconds(1),
Commands.deadline(Commands.waitSeconds(0.1), new RobotRelativeDriveCommand(drive, () -> 0, () -> yValue, () -> 0))
);
}

}}
public Command TaxiBack() {
return Commands.sequence(
Commands.waitSeconds(0),
Commands.deadline(
Commands.waitSeconds(3),
new RobotRelativeDriveCommand(drive, () -> -0.5, () -> 0, () -> 0)
)
);
};
}



Expand Down

0 comments on commit 179912e

Please sign in to comment.