Skip to content

Commit e08ffbf

Browse files
committed
update processor sequence - drive practice
1 parent 13eb816 commit e08ffbf

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/main/java/frc/robot/commands/auton/IRIAutonCommand.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public IRIAutonCommand(
6464
new PrepOdomForAutoCommand(
6565
robotStateSubsystem, driveSubsystem, Rotation2d.fromDegrees(90.0), startPose),
6666
new ZeroElevatorCommand(elevatorSubsystem)),
67-
new ForceLowFloorAlgaeCommand(robotStateSubsystem, elevatorSubsystem, biscuitSubsystem, algaeSubsystem),
67+
new ForceLowFloorAlgaeCommand(
68+
robotStateSubsystem, elevatorSubsystem, biscuitSubsystem, algaeSubsystem),
6869
new SetAutoPlacingCommand(robotStateSubsystem, true),
6970
new ForceBargeCommand(
7071
robotStateSubsystem, elevatorSubsystem, biscuitSubsystem, algaeSubsystem),

src/main/java/frc/robot/constants/AlgaeConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class AlgaeConstants {
2929
public static final double kHoldSpeed = 1;
3030
public static final double kCoralHoldSpeed = -0.05;
3131
public static final double kBargeScoreSpeed = -1;
32-
public static final double kProcessorScoreSpeed = -1;
32+
public static final double kProcessorScoreSpeed = -0.5; // was -1.0
3333
public static final double kCoralScoreSpeed = 0.3; // 0.5; was 0.4
3434
public static final double kIntakingSpeed = 1; // 0.75
3535
public static final double kCoralIntakingSpeed = -0.3; // -0.75;

src/main/java/frc/robot/subsystems/robotState/RobotStateSubsystem.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,7 @@ public void periodic() {
11821182
FastMath.pow2(currentPose.getX() - processorReleasePose.getX())
11831183
+ FastMath.pow2(currentPose.getY() - processorReleasePose.getY()));
11841184
Logger.recordOutput("RobotState/Processor Release Distance", distanceFromRelease);
1185+
algaeSubsystem.holdAlgae(); // stop wheels once algae is out
11851186

11861187
if (distanceFromRelease > RobotStateConstants.kProcessorStowRadius) {
11871188
isEjectingAlgae = false;

0 commit comments

Comments
 (0)