Skip to content

Commit

Permalink
undid the rumble debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
Yumnah2 committed Mar 19, 2024
1 parent 2c47282 commit 6a30f2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/frc/team2412/robot/Controls.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import edu.wpi.first.math.MathUtil;
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.GenericHID.RumbleType;
import edu.wpi.first.wpilibj2.command.CommandScheduler;
import edu.wpi.first.wpilibj2.command.InstantCommand;
Expand Down Expand Up @@ -122,7 +123,7 @@ private void bindDrivebaseControls() {
private void bindIntakeControls() {
// CommandScheduler.getInstance()
// .setDefaultCommand(s.intakeSubsystem, new IntakeStopCommand(s.intakeSubsystem));
driveIntakeInButton.onTrue(new RumbleCommand(this));
driveIntakeInButton.onTrue(new AllInCommand(s.intakeSubsystem, this));
driveIntakeStopButton.onTrue(new AllStopCommand(s.intakeSubsystem));

driveIntakeReverseButton.onTrue(new AllReverseCommand(s.intakeSubsystem));
Expand Down Expand Up @@ -177,10 +178,9 @@ private void bindLauncherControls() {
}

public void vibrateDriveController(double vibration) {
// if (!DriverStation.isAutonomous()) {

// }
driveController.getHID().setRumble(RumbleType.kBothRumble, vibration);
codriveController.getHID().setRumble(RumbleType.kBothRumble, vibration);
if (!DriverStation.isAutonomous()) {
driveController.getHID().setRumble(RumbleType.kBothRumble, vibration);
codriveController.getHID().setRumble(RumbleType.kBothRumble, vibration);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ public IntakeSubsystem() {
intakeLeftSensor = intakeMotorLeft.getForwardLimitSwitch(SparkLimitSwitch.Type.kNormallyOpen);
intakeRightSensor = intakeMotorRight.getForwardLimitSwitch(SparkLimitSwitch.Type.kNormallyOpen);


//todo: MOVE THIS TO CONFIGURE MOTOR
intakeFrontSensor.enableLimitSwitch(false);
intakeLeftSensor.enableLimitSwitch(false);
intakeRightSensor.enableLimitSwitch(false);
Expand Down

0 comments on commit 6a30f2f

Please sign in to comment.