Skip to content

Commit

Permalink
Merge branch '82-shintake' of github.com:FRC-Team-620/Warbots2024 int…
Browse files Browse the repository at this point in the history
…o 82-shintake
  • Loading branch information
Lu-han-wang committed Mar 28, 2024
2 parents 26a3701 + b889783 commit d5a440d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
14 changes: 0 additions & 14 deletions src/main/java/org/jmhsrobotics/frc2024/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ public RobotContainer() {
new ArmVision(armSubsystem, visionSubsystem, driveSubsystem).until(armSubsystem::atGoal)); // TODO:
// Handle
// End
// // condition
// SmartDashboard.putData("RedLED", new setRedLEDCommand(ledSubsystem,
// intakeSubsystem));
SmartDashboard.putData("ArmVision", new ArmVision(armSubsystem, visionSubsystem, driveSubsystem));
SmartDashboard.putData("Lock Speaker", new LockSpeaker(driveSubsystem, visionSubsystem));

Expand All @@ -155,17 +152,6 @@ private void configureDriverFeedback() {
.onTrue(new ParallelCommandGroup(new RumbleTimeCommand(control, RumbleType.kLeftRumble, 1, 1),
new setBlueLEDCommand(ledSubsystem, this.shintakeSubsystem)));

// new Trigger(this.defaultIntakeCommand::isScheduled)
// .onTrue(new FlashingLEDCommand(ledSubsystem, intakeSubsystem));
// new Trigger(intakeSubsystem::isIntaking).onTrue(new
// FlashingLEDCommand(ledSubsystem, intakeSubsystem));

// new Trigger(intakeSubsystem.getCurrentCommand()==new
// DefaultIntakeCommand(this.intakeSubsystem, this.shooterSubsystem)).onTrue(new
// FlashingLEDCommand(ledSubsystem, intakeSubsystem));
// new Trigger(this.defaultIntakeCommand::isScheduled)
// .onTrue(new FlashingLEDCommand(ledSubsystem, intakeSubsystem));

new Trigger(shintakeSubsystem::noteTooHigh).onTrue(new setRedLEDCommand(ledSubsystem, shintakeSubsystem));

new Trigger(shintakeSubsystem::shooterAtGoal)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ public ShooterAutoCommand(ShintakeSubsystem shintakeSubsystem, double targetRPM)

@Override
public void execute() {
this.shintakeSubsystem.setShooterGoal(-1, ControlType.VOLTAGE);
this.shintakeSubsystem.setShooterGoal(this.targetRPM, ControlType.VOLTAGE);
}

@Override
public boolean isFinished() {
// return this.shooterSubsystem.atGoal();
return false;
return this.shintakeSubsystem.shooterAtGoal();
// return false;

}

Expand Down

0 comments on commit d5a440d

Please sign in to comment.