Skip to content

Commit

Permalink
made intake run while going to the station and added a stop intake co…
Browse files Browse the repository at this point in the history
…mmand after
  • Loading branch information
Tinbite-A committed Feb 11, 2025
1 parent 8902354 commit b852c29
Showing 1 changed file with 73 additions and 37 deletions.
110 changes: 73 additions & 37 deletions src/main/kotlin/frc/team449/auto/Routines.kt
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,17 @@ open class Routines(

Commands.sequence(
reefETrajectory.resetOdometry(),
Commands.parallel(
Commands.sequence(reefETrajectory.cmd(),robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.L1_PREMOVE)),
robot.intake.outtakeCoral(),
Commands.parallel(
Commands.sequence(reefETrajectory.cmd(),robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.L1_PREMOVE)),
robot.intake.outtakeCoral(),

Commands.parallel(
Commands.parallel(
Commands.sequence(reefEtoStationTrajectory.cmd(), robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE)),
robot.intake.intakeCoral(),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE),
robot.intake.intakeCoral()),
robot.intake.stop(),


Commands.parallel(
Commands.sequence(stationToDTrajectory.cmd(),robot.drive.driveStop()),
Expand Down Expand Up @@ -208,8 +210,11 @@ open class Routines(

Commands.parallel(
Commands.sequence(reefJtoStationTrajectory.cmd(), robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE)),
robot.intake.intakeCoral(),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE),
robot.intake.intakeCoral()),
robot.intake.stop(),



Commands.parallel(
Commands.sequence(stationToLTrajectory.cmd(),robot.drive.driveStop()),
Expand Down Expand Up @@ -237,8 +242,11 @@ open class Routines(

Commands.parallel(
Commands.sequence(reefJtoStationTrajectory.cmd(), robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE)),
robot.intake.intakeCoral(),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE),
robot.intake.intakeCoral()),
robot.intake.stop(),



Commands.parallel(
Commands.sequence(stationToKTrajectory.cmd(),robot.drive.driveStop()),
Expand Down Expand Up @@ -270,8 +278,11 @@ open class Routines(

Commands.parallel(
Commands.sequence(reefJtoStationTrajectory.cmd(), robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE)),
robot.intake.intakeCoral(),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE),
robot.intake.intakeCoral()),
robot.intake.stop(),



Commands.parallel(
Commands.sequence(stationToKTrajectory.cmd(),robot.drive.driveStop()),
Expand All @@ -280,8 +291,11 @@ open class Routines(

Commands.parallel(
Commands.sequence(reefKtoStationTrajectory.cmd(),robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE)),
robot.intake.intakeCoral(),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE),
robot.intake.intakeCoral()),
robot.intake.stop(),



Commands.parallel(
Commands.sequence(stationToLTrajectory.cmd(),robot.drive.driveStop()),
Expand Down Expand Up @@ -313,8 +327,10 @@ open class Routines(

Commands.parallel(
Commands.sequence(reefJtoStationTrajectory.cmd(), robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE)),
robot.intake.intakeCoral(),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE),
robot.intake.intakeCoral()),
robot.intake.stop(),


Commands.parallel(
Commands.sequence(stationToKTrajectory.cmd(),robot.drive.driveStop()),
Expand All @@ -323,8 +339,10 @@ open class Routines(

Commands.parallel(
Commands.sequence(reefKtoStationTrajectory.cmd(),robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE)),
robot.intake.intakeCoral(),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE),
robot.intake.intakeCoral()),
robot.intake.stop(),


Commands.parallel(
Commands.sequence(stationToKTrajectory.cmd(),robot.drive.driveStop()),
Expand All @@ -333,8 +351,10 @@ open class Routines(

Commands.parallel(
Commands.sequence(reefKtoStationTrajectory.cmd(),robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE)),
robot.intake.intakeCoral(),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE),
robot.intake.intakeCoral()),
robot.intake.stop(),


Commands.parallel(
Commands.sequence(stationToKTrajectory.cmd(),robot.drive.driveStop()),
Expand Down Expand Up @@ -369,8 +389,10 @@ open class Routines(

Commands.parallel(
Commands.sequence(reefJToLeftStation.cmd(), robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE)),
robot.intake.intakeCoral(),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE),
robot.intake.intakeCoral()),
robot.intake.stop(),


Commands.parallel(
Commands.sequence(leftStationToReefK.cmd(), robot.drive.driveStop()),
Expand All @@ -379,8 +401,10 @@ open class Routines(

Commands.parallel(
Commands.sequence(reefKToLeftStation.cmd(), robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE)),
robot.intake.intakeCoral(),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE),
robot.intake.intakeCoral()),
robot.intake.stop(),


Commands.parallel(
Commands.sequence(leftStationReefL.cmd(), robot.drive.driveStop()),
Expand All @@ -389,8 +413,10 @@ open class Routines(

Commands.parallel(
Commands.sequence(reefLtoLeftStation.cmd(), robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE)),
robot.intake.intakeCoral(),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE),
robot.intake.intakeCoral()),
robot.intake.stop(),


Commands.parallel(
Commands.sequence(leftStationToReefK.cmd(), robot.drive.driveStop()),
Expand All @@ -399,8 +425,10 @@ open class Routines(

Commands.parallel(
Commands.sequence(reefKToLeftStation.cmd(), robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE)),
robot.intake.intakeCoral(),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE),
robot.intake.intakeCoral()),
robot.intake.stop(),


Commands.parallel(
Commands.sequence(leftStationReefL.cmd(), robot.drive.driveStop()),
Expand Down Expand Up @@ -435,8 +463,10 @@ open class Routines(

Commands.parallel(
Commands.sequence(reefEToRightStation.cmd(), robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE)),
robot.intake.intakeCoral(),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE),
robot.intake.intakeCoral()),
robot.intake.stop(),


Commands.parallel(
Commands.sequence(rightStationToReefD.cmd(), robot.drive.driveStop()),
Expand All @@ -445,8 +475,10 @@ open class Routines(

Commands.parallel(
Commands.sequence(reefDToRightStation.cmd(), robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE)),
robot.intake.intakeCoral(),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE),
robot.intake.intakeCoral()),
robot.intake.stop(),


Commands.parallel(
Commands.sequence(rightStationReefC.cmd(), robot.drive.driveStop()),
Expand All @@ -455,8 +487,10 @@ open class Routines(

Commands.parallel(
Commands.sequence(reefCtoRightStation.cmd(), robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE)),
robot.intake.intakeCoral(),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE),
robot.intake.intakeCoral()),
robot.intake.stop(),


Commands.parallel(
Commands.sequence(rightStationToReefD.cmd(), robot.drive.driveStop()),
Expand All @@ -465,8 +499,10 @@ open class Routines(

Commands.parallel(
Commands.sequence(reefDToRightStation.cmd(), robot.drive.driveStop()),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE)),
robot.intake.intakeCoral(),
robot.superstructureManager.requestGoal(SuperstructureGoal.SUBSTATION_INTAKE),
robot.intake.intakeCoral()),
robot.intake.stop(),


Commands.parallel(
Commands.sequence(rightStationReefC.cmd(), robot.drive.driveStop()),
Expand Down

0 comments on commit b852c29

Please sign in to comment.