Skip to content

Commit

Permalink
maybe intake
Browse files Browse the repository at this point in the history
  • Loading branch information
xorbotz committed Jan 22, 2024
1 parent e2a7804 commit 87ccf2e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
10 changes: 5 additions & 5 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ public static final class Shooter {
public static final int driveContinuousCurrentLimit = 10;
public static final double voltageComp = 12.0;

public static final int speakerStrength = 15760;
public static final int speakerStrength = -1000;
public static final int ampStrength = 2560;
public static final int receive = -100;
public static final int receive = 100;

}

public static final class Swerve {
public static final double fastDriveSpeedMultiplier = 1.0;
public static final double normalDriveSpeedMultiplier = 1.0;
public static final double slowDriveSpeedMultiplier = 1.0;
public static final double fastDriveSpeedMultiplier = .8;
public static final double normalDriveSpeedMultiplier = .6;
public static final double slowDriveSpeedMultiplier = .4;
public static final int PIGEON2_ID = 10;
//SET ME Each Run...
public static final double robotOffset = 0.0;
Expand Down
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 @@ -48,9 +48,9 @@ public RobotContainer() {
ShooterSubsystem));
}
private void configureButtonBindings() {
new JoystickButton(CONTROLLER, 4)
.whileTrue(
new RunCommand(() -> ShooterSubsystem.receive(true), ShooterSubsystem));
// new JoystickButton(CONTROLLER, 5)
//.whileTrue(
// new RunCommand(() -> ShooterSubsystem.receive(true), ShooterSubsystem));
}

public Command getAutonomousCommand() {
Expand Down
19 changes: 10 additions & 9 deletions src/main/java/frc/robot/subsystems/ShooterSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,16 @@ public void receive(boolean shoot) {
shooterPidController_2.setReference(
Constants.Shooter.receive,
ControlType.kVelocity);
} else {
shooterPidController_1.setReference(
0,
ControlType.kVelocity);
shooterMotor_1.set(0);
shooterPidController_2.setReference(
0,
ControlType.kVelocity);
shooterMotor_2.set(0);
}
else {
// shooterPidController_1.setReference(
// 0,
// ControlType.kVelocity);
//shooterMotor_1.set(0);
//shooterPidController_2.setReference(
// 0,
// ControlType.kVelocity);
//shooterMotor_2.set(0);
}
}
}

0 comments on commit 87ccf2e

Please sign in to comment.