Skip to content

Commit

Permalink
tuned red speaker shooting - it works!!
Browse files Browse the repository at this point in the history
  • Loading branch information
rflood07 committed Mar 28, 2024
1 parent 41a6b5f commit a4305c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/main/java/frc/robot/commands/IndexCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ public void execute() {
} else {
m_Indexer.off();
}
shooter.shootRPSWithCurrent(LONG_SHOOTING_RPS, 10, 20);
// shooter.shootRPSWithCurrent(LONG_SHOOTING_RPS, 10, 20);
shooter.turnOff();
}
}
} else {
Expand All @@ -140,7 +141,7 @@ public void execute() {
shooter.shootRPS(PASS_RPS);
} else {
// shooter.turnOff();
shooter.shootRPS(LONG_SHOOTING_RPS);
shooter.shootRPSWithCurrent(LONG_SHOOTING_RPS, 20, 30);
}
}
boolean indexer = false;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/frc/robot/settings/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,10 @@ public final class PS4Operator{

public final class Field{
public static final double ROBOT_BLUE_SPEAKER_X = 0.23;
public static final double ROBOT_RED_SPEAKER_X = 16;//16.38;//16.87; changed so that shots from the side wil aim to the opposite side, and bank in
public static final double ROBOT_RED_SPEAKER_X = 16.3;//16.38;//16.87; changed so that shots from the side wil aim to the opposite side, and bank in
public static final double SHOOTER_BLUE_SPEAKER_X = 0.23;//16.38;//16.87; changed so that shots from the side wil aim to the opposite side, and bank in
public static final double SHOOTER_RED_SPEAKER_X = 16.87;//16.38; changed so that shots from the side wil aim to the opposite side, and bank in
public static final double SPEAKER_Y = 5.46;
public static final double SHOOTER_RED_SPEAKER_X = 16.4;//16.38; changed so that shots from the side wil aim to the opposite side, and bank in
public static final double SPEAKER_Y = 5.35;//5.46;
public static final double SPEAKER_Z = 2.08;//1.5;//1.8;//2.08; //height of opening. Changed so that the smaller spekeaker_x shots will still go in
public static final double MAX_SHOOTING_DISTANCE = 9;
public static final double SHORT_RANGE_SHOOTING_DIST = 3;
Expand Down

0 comments on commit a4305c6

Please sign in to comment.