Skip to content

Commit

Permalink
auto fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DriverStationComputer committed Jul 21, 2024
1 parent 823c34a commit 9afcee7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/autos/Preload1Center.auto
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{
"type": "named",
"data": {
"name": "Shoot"
"name": "ShootSubwoofer"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/autos/Preload1Left.auto
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{
"type": "named",
"data": {
"name": "Shoot"
"name": "ShootSubwoofer"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/autos/Preload1Right.auto
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{
"type": "named",
"data": {
"name": "Shoot"
"name": "ShootSubwoofer"
}
}
]
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/org/carlmontrobotics/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,10 @@ private void registerAutoCommands() {
new PassToOuttake(intakeShooter),
new ArmToPos(arm, GROUND_INTAKE_POS)))));
NamedCommands.registerCommand("ShootSubwoofer",
new SequentialCommandGroup(
new ArmToPos(arm, Armc.SUBWOOFER_ANGLE_RAD),
new RampRPMAuton(intakeShooter),
new SequentialCommandGroup(new ParallelCommandGroup(
new ArmToPos(arm,
Armc.SUBWOOFER_ANGLE_RAD),
new RampRPMAuton(intakeShooter)),
new PassToOuttake(intakeShooter),
new ArmToPos(arm, GROUND_INTAKE_POS)));
NamedCommands.registerCommand("Limelight Intake CCW",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public void end(boolean interrupted) {
@Override
public boolean isFinished() {
return (!intakeShooter.intakeDetectsNote()
&& !intakeShooter.outtakeDetectsNote()) || LimelightHelpers.getTV(SHOOTER_LL_NAME);
&& !intakeShooter.outtakeDetectsNote());
// || !LimelightHelpers.getTV(SHOOTER_LL_NAME);
}
}

0 comments on commit 9afcee7

Please sign in to comment.