Skip to content

Commit

Permalink
Revert "spelling mistake and reverseintakeflywheel"
Browse files Browse the repository at this point in the history
This reverts commit 0bfb71c.
  • Loading branch information
xeldridge18 committed Sep 28, 2024
1 parent 4420d47 commit 886ff4d
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 59 deletions.
6 changes: 3 additions & 3 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import frc.robot.commands.Positions.SpeakerShot;
import frc.robot.commands.Positions.StowPosition;
import frc.robot.commands.PreRunShooter;
import frc.robot.commands.ReverseIntakeFlywheel;
import frc.robot.commands.ShootNote;
import frc.robot.commands.ShootNoteTeleop;
import frc.robot.subsystems.arm.Arm;
Expand Down Expand Up @@ -74,6 +73,8 @@ public class RobotContainer {
// Subsystems
private final Drive sDrive;
private final Flywheel sFlywheel;
private final Flywheel sEject;
private final Intake sOutake;
private final Intake sIntake;
private final Arm sArm;

Expand Down Expand Up @@ -337,8 +338,7 @@ private void configureButtonBindings() {
new PreRunShooter(sFlywheel, true, sIntake)); // Runs the flywheel slowly at all times

operatorController.rightBumper().whileTrue(new ShootNoteTeleop(sIntake, sFlywheel, sArm));
// operatorController.leftBumper().whileTrue(new PreRunShooter(sFlywheel, sIntake));
operatorController.leftBumper().whileTrue(new ReverseIntakeFlywheel(sIntake, sFlywheel));
operatorController.leftBumper().whileTrue(new ShootNoteTeleop(sOutake, sEject, sArm));

// Climber controls (The first one is 90% probably the one that works.)
// sClimber.setDefaultCommand(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static Command intakeShooterDefaultCommand(
intake.runPercentSpeed(
Constants.IntakeConstants.percentPower * rightTriggerSupplier.getAsDouble());
}
boolean noteDetected = intake.getConveyorProximity() || intake.getShooterProximity();
boolean noteDetected = intake.getConveyerProximity() || intake.getShooterProximity();
SmartDashboard.putBoolean("Note Detected", noteDetected);
},
intake);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/commands/IntakeNote.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void initialize() {}
@Override
public void execute() {

if (intake.getConveyorProximity()) {
if (intake.getConveyerProximity()) {
intake.runPercentSpeed(0);
} else {
intake.runPercentSpeed(-Constants.IntakeConstants.percentPower);
Expand All @@ -51,6 +51,6 @@ public void end(boolean interrupted) {

@Override
public boolean isFinished() {
return intake.getConveyorProximity();
return intake.getConveyerProximity();
}
}
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/commands/IntakeNoteAndAlign.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void initialize() {}
@Override
public void execute() {

if (intake.getConveyorProximity()) {
if (intake.getConveyerProximity()) {
intake.runPercentSpeed(0);
} else {
intake.runPercentSpeed(-Constants.IntakeConstants.percentPower);
Expand All @@ -51,6 +51,6 @@ public void end(boolean interrupted) {

@Override
public boolean isFinished() {
return intake.getConveyorProximity();
return intake.getConveyerProximity();
}
}
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/PreRunShooter.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void execute() {
flywheel.runVelocity(500);

} else if (slowerDefault) {
if (intake.getConveyorProximity()) {
if (intake.getConveyerProximity()) {
flywheel.runVelocity(Constants.FlywheelConstants.slowShootingVelocity);
} else {
flywheel.runVelocity(300);
Expand Down
47 changes: 0 additions & 47 deletions src/main/java/frc/robot/commands/ReverseIntakeFlywheel.java

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/ShootNote.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void execute() {
intake.runPercentSpeed(-1);
}

if (!intake.getConveyorProximity() && !intake.getShooterProximity()) {
if (!intake.getConveyerProximity() && !intake.getShooterProximity()) {
if (sensorsZeroTime == null) {
sensorsZeroTime = System.currentTimeMillis();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/LedSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void setDisco() {

@Override
public void periodic() {
boolean noteDetected = intake.getConveyorProximity() || intake.getShooterProximity();
boolean noteDetected = intake.getConveyerProximity() || intake.getShooterProximity();
SmartDashboard.putBoolean("Note Detected", noteDetected);
if (noteDetected) {
setColor(new int[] {0, 255, 0});
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/intake/Intake.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void runPercentSpeed(double percentSpeed) {
Logger.recordOutput("Intake/PercentSpeed", percentSpeed);
}

public boolean getConveyorProximity() {
public boolean getConveyerProximity() {
return proximitySensorInputs.isConveyorSensorTriggered;
}

Expand Down

0 comments on commit 886ff4d

Please sign in to comment.