Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

Commit fa8289d

Browse files
Merge branch 'main' of https://github.com/team581/frc-2026
2 parents dffa5e0 + 277b417 commit fa8289d

5 files changed

Lines changed: 7 additions & 12 deletions

File tree

comp-bot/src/main/java/frc/robot/deploy/DeployState.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ public enum DeployState {
77
INTAKE(DeployConfig.MAX_LENGTH - 0.25),
88
STOW(1.0),
99
HOPPER_SHUFFLING_OUT(INTAKE.getLength()),
10-
HOPPER_SHUFFLING_IN(HOPPER_SHUFFLING_OUT.getLength() - 4.0),
11-
HOPPER_SHUFFLING_FINISH(6.0),
10+
HOPPER_SHUFFLING_IN(HOPPER_SHUFFLING_OUT.getLength()),
11+
HOPPER_SHUFFLING_FINISH(HOPPER_SHUFFLING_OUT.getLength()),
1212
HOME_INWARD(0),
1313
HOME_OUTWARD(DeployConfig.MAX_LENGTH),
1414
UNHOMED(0);

comp-bot/src/main/java/frc/robot/dye_rotor/DyeRotorConfig.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import edu.wpi.first.math.filter.Debouncer;
1414
import edu.wpi.first.math.interpolation.InterpolatingDoubleTreeMap;
1515
import edu.wpi.first.networktables.DoubleSubscriber;
16-
import frc.robot.config.RobotKind;
1716
import java.util.Map;
1817

1918
public class DyeRotorConfig {
@@ -59,11 +58,7 @@ public class DyeRotorConfig {
5958
new MotorOutputConfigs()
6059
.withNeutralMode(NeutralModeValue.Coast)
6160
.withInverted(InvertedValue.Clockwise_Positive))
62-
.withSlot0(
63-
new Slot0Configs()
64-
.withKP(10.0)
65-
.withKV(4.65)
66-
.withKS(0.0));
61+
.withSlot0(new Slot0Configs().withKP(10.0).withKV(4.65).withKS(0.0));
6762

6863
public static final TalonFXConfiguration VERTICAL_MOTOR_CONFIG =
6964
new TalonFXConfiguration()

comp-bot/src/main/java/frc/robot/intake/IntakeState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import edu.wpi.first.networktables.DoubleSubscriber;
55

66
public enum IntakeState {
7-
INTAKE(10),
7+
INTAKE(12),
88
INTAKE_AUTO(12),
99
IDLE(0),
1010
SHOOT(3),

comp-bot/src/main/java/frc/robot/robot_manager/RobotManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ protected void collectInputs() {
12901290
double driveDirection = swerveVector.getDegrees();
12911291
drivingToIntake =
12921292
intake.getState().isIntaking()
1293-
&& MathUtil.isNear(robotRotation, driveDirection, 90.0, -180, 180)
1293+
&& MathUtil.isNear(robotRotation, driveDirection, 120.0, -180, 180)
12941294
&& MathHelpers.getLinearVelocity(speeds) > 1e-5;
12951295
isInScoringZone =
12961296
!health.isLocalizationHealthy()

comp-bot/src/main/java/frc/robot/shooter/ShooterConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public class ShooterConfig {
8585
.withNeutralMode(NeutralModeValue.Coast)
8686
.withInverted(InvertedValue.CounterClockwise_Positive))
8787
.withSlot0(
88-
new Slot0Configs().withKP(RobotKind.IS_COMP_BOT ? 0.7 : 0.0).withKV(0.127)
88+
new Slot0Configs().withKP(RobotKind.IS_COMP_BOT ? 0.55 : 0.7).withKV(0.127)
8989
// .withKD(0.00015)
9090
)
9191
.withVoltage(new VoltageConfigs().withPeakReverseVoltage(0))
@@ -111,7 +111,7 @@ public class ShooterConfig {
111111
.withNeutralMode(NeutralModeValue.Coast)
112112
.withInverted(InvertedValue.Clockwise_Positive))
113113
.withSlot0(
114-
new Slot0Configs().withKP(RobotKind.IS_COMP_BOT ? 0.7 : 0.0).withKV(0.127)
114+
new Slot0Configs().withKP(RobotKind.IS_COMP_BOT ? 0.55 : 0.7).withKV(0.127)
115115
// .withKD(0.00015)
116116
)
117117
.withVoltage(new VoltageConfigs().withPeakReverseVoltage(0))

0 commit comments

Comments
 (0)