Skip to content

Commit

Permalink
fixed intake to make it better
Browse files Browse the repository at this point in the history
  • Loading branch information
rflood07 committed Mar 21, 2024
1 parent 3fe17ca commit d0ac824
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/settings/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public static final class ShooterConstants{
public static final double HUMAN_PLAYER_ANGLE = 97;
public static final double HUMAN_PLAYER_RPS = -15;
public static final double SAFE_SHOOTER_ANGLE = 15;
public static final double GROUND_INTAKE_SHOOTER_ANGLE = 90;
public static final double GROUND_INTAKE_SHOOTER_ANGLE = 69;
/**
* the values used when adjusting the shooter's angle based on our speaker distance. Here's how we calculated them:
* <p>
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/frc/robot/subsystems/IntakeSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ public IntakeSubsystem() {
} else {
m_DistanceSensor = intake2.getAnalog(Mode.kAbsolute);
}
intake2.follow(intake1);
intake2.setInverted(false);
intake2.setInverted(true);
intake1.setInverted(true);
intake1.setIdleMode(IdleMode.kCoast);
intake2.setIdleMode(IdleMode.kCoast);
Expand All @@ -65,6 +64,7 @@ public IntakeSubsystem() {
*/
public void intakeYes(double intakeRunSpeed) {
intake1.set(intakeRunSpeed);
intake2.set(intakeRunSpeed);
}
/**
* sets the intakes speed
Expand All @@ -73,12 +73,14 @@ public void intakeYes(double intakeRunSpeed) {
*/
public void intakeNo(double intakeRunSpeed) {
intake1.set(-intakeRunSpeed);
intake2.set(-intakeRunSpeed);
}
/**
* sets the intake's power to 0
*/
public void intakeOff() {
intake1.set(0);
intake2.set(0);
}
/**
* uses the distance sensor inside the indexer to tell if there is a note fully inside the indexer
Expand Down

0 comments on commit d0ac824

Please sign in to comment.