Skip to content

Commit

Permalink
READY FOR GRITS DAY 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MqxS committed Oct 19, 2024
1 parent 5dfb70e commit f29a350
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 24 deletions.
1 change: 0 additions & 1 deletion src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public class Robot extends LoggedRobot {
public final Shooter shooter = new Shooter(Constants.CURRENT_MODE, HardwareConstants.SHOOTER);
public final Superstructure superstructure = new Superstructure(arm, shooter);

@SuppressWarnings("unused")
public final PhotonVision photonVision = new PhotonVision(Constants.CURRENT_MODE, swerve, swerve.getPoseEstimator());

public final NoteState noteState = new NoteState(Constants.CURRENT_MODE, intake);
Expand Down
44 changes: 22 additions & 22 deletions src/main/java/frc/robot/auto/Autos.java
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public EventLoop ampSpeaker2Center2_3() {

autoTriggers.atTime(0.4).onTrue(
Commands.sequence(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
)
);
Expand All @@ -353,7 +353,7 @@ public EventLoop ampSpeaker2Center2_3() {

autoTriggers.atTime(3).onTrue(
Commands.sequence(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
)
);
Expand All @@ -366,7 +366,7 @@ public EventLoop ampSpeaker2Center2_3() {

autoTriggers.atTime(7).onTrue(
Commands.sequence(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
)
);
Expand All @@ -388,7 +388,7 @@ public EventLoop speaker2_1_0() {

autoTriggers.atTime(0.4).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
).withName("Intake0")
);
Expand All @@ -403,7 +403,7 @@ public EventLoop speaker2_1_0() {

autoTriggers.atTime(2.3).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
).withName("Intake1")
);
Expand All @@ -418,7 +418,7 @@ public EventLoop speaker2_1_0() {

autoTriggers.atTime(4.6).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
).withName("Intake2")
);
Expand Down Expand Up @@ -451,7 +451,7 @@ public EventLoop sourceCenter1_0() {

autoTriggers.atTime(1.7).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
).withName("Intake0")
);
Expand All @@ -465,7 +465,7 @@ public EventLoop sourceCenter1_0() {

autoTriggers.atTime(6).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
).withName("Intake1")
);
Expand All @@ -487,7 +487,7 @@ public EventLoop ampCenter3_2() {

autoTriggers.atTime(2).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
).withName("Intake0")
);
Expand All @@ -501,7 +501,7 @@ public EventLoop ampCenter3_2() {

autoTriggers.atTime(6).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
).withName("Intake1")
);
Expand All @@ -523,7 +523,7 @@ public EventLoop ampCenter2_3() {

autoTriggers.atTime(2).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
).withName("Intake0")
);
Expand All @@ -537,7 +537,7 @@ public EventLoop ampCenter2_3() {

autoTriggers.atTime(5.85).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
).withName("Intake1")
);
Expand All @@ -559,7 +559,7 @@ public EventLoop ampCenter4_3() {

autoTriggers.atTime(1.8).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
).withName("Intake0")
);
Expand All @@ -576,7 +576,7 @@ public EventLoop ampCenter4_3() {

autoTriggers.atTime(5).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
).withName("Intake1")
);
Expand All @@ -601,7 +601,7 @@ public EventLoop ampCenter3_4() {

autoTriggers.atTime(1.8).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
).withName("Intake0")
);
Expand All @@ -618,7 +618,7 @@ public EventLoop ampCenter3_4() {

autoTriggers.atTime(5.2).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
).withName("Intake1")
);
Expand Down Expand Up @@ -1034,7 +1034,7 @@ public EventLoop sourceCenter0_1_2() {

autoTriggers.atTime(1.6).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
).withName("Intake0")
);
Expand All @@ -1052,7 +1052,7 @@ public EventLoop sourceCenter0_1_2() {

autoTriggers.atTime(6).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
shootCommands.readySuperstructureForShot()
).withName("Intake1")
);
Expand Down Expand Up @@ -1096,7 +1096,7 @@ public EventLoop altSourceCenter0_1_2() {

autoTriggers.atTime(1.6).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
Commands.sequence(
Commands.waitUntil(noteState.hasNote),
shootCommands.readySuperstructureForShot().asProxy()
Expand All @@ -1117,7 +1117,7 @@ public EventLoop altSourceCenter0_1_2() {

autoTriggers.atTime(5.5).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
Commands.sequence(
Commands.waitUntil(noteState.hasNote),
shootCommands.readySuperstructureForShot().asProxy()
Expand Down Expand Up @@ -1164,7 +1164,7 @@ public EventLoop sourceCenter1_0_2() {

autoTriggers.atTime(1.8).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
Commands.sequence(
Commands.waitUntil(noteState.hasNote),
shootCommands.readySuperstructureForShot().asProxy()
Expand All @@ -1185,7 +1185,7 @@ public EventLoop sourceCenter1_0_2() {

autoTriggers.atTime(6.2).onTrue(
Commands.parallel(
intake.intakeCommand(),
intake.intakeCommand().asProxy(),
Commands.sequence(
Commands.waitUntil(noteState.hasNote),
shootCommands.readySuperstructureForShot().asProxy()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public Parameters interpolate(final Parameters endValue, final double t) {
));

shotDataMap.put(4d, new Parameters(
Rotation2d.fromDegrees(26),
Rotation2d.fromDegrees(27),
84.433,
128.883,
84.433,
Expand Down

0 comments on commit f29a350

Please sign in to comment.