Skip to content

Commit 0385f30

Browse files
committed
flywheel shot distance updates from 8230 & 1418
1 parent d0a931d commit 0385f30

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/main/java/frc/robot/config/FlywheelConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class FlywheelConfig {
3333
public static final double FLYWHEEL_OUTTAKE_SPEED = 0;
3434
public static final double FLYWHEEL_HUB_SHOT_SPEED = 40;
3535
public static final double FLYWHEEL_TOWER_SHOT_SPEED = 0;
36-
public static final double FLYWHEEL_TRENCH_SHOT_SPEED = 40; // to be set later w/ testing
36+
public static final double FLYWHEEL_TRENCH_SHOT_SPEED = 65;
3737
public static final double FLYWHEEL_DEFAULT_SHOT_SPEED = 40;
3838
public static final double FLYWHEEL_TOLERANCE = 5;
3939
}

src/main/java/frc/robot/helpers/ShotCalculator.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,12 @@ public static boolean shouldRunShooter(double graceSeconds) {
130130

131131
// Set map inputs
132132
static {
133-
DISTANCE_TO_FLYWHEEL.put(Units.inchesToMeters(171), 87.0);
133+
DISTANCE_TO_FLYWHEEL.put(Units.inchesToMeters(174), 87.0);
134134
DISTANCE_TO_FLYWHEEL.put(Units.inchesToMeters(141), 70.0);
135135
DISTANCE_TO_FLYWHEEL.put(Units.inchesToMeters(90), 60.0);
136136
DISTANCE_TO_FLYWHEEL.put(Units.inchesToMeters(61), 50.0);
137+
DISTANCE_TO_FLYWHEEL.put(Units.inchesToMeters(43), 40.0);
138+
DISTANCE_TO_FLYWHEEL.put(Units.inchesToMeters(74), 50.0);
139+
DISTANCE_TO_FLYWHEEL.put(Units.inchesToMeters(134), 65.0);
137140
}
138141
}

0 commit comments

Comments
 (0)