Skip to content

Commit

Permalink
moved drawbridige up to reverse trap sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
Griffin9881 committed Apr 13, 2024
1 parent 09c20a1 commit 9fdfc41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/main/java/frc/robot/commands/LiftUpCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
import edu.wpi.first.math.controller.PIDController;
import edu.wpi.first.wpilibj2.command.Command;
import frc.robot.constants.LiftConstants;
import frc.robot.subsystems.Drawbridge;
import frc.robot.subsystems.Lift;

public class LiftUpCommand extends Command {
private Lift lift = Lift.getInstance();
private Drawbridge drawbridge = Drawbridge.getInstance();

public LiftUpCommand() {
addRequirements(lift);
Expand Down Expand Up @@ -39,6 +37,5 @@ public boolean isFinished() {
public void end(boolean interrupted) {
lift.enableRatchets();
lift.disable();
drawbridge.up();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import edu.wpi.first.wpilibj2.command.WaitUntilCommand;
import frc.robot.commands.ScoringElevatorPositionCommand.FinishActions;
import frc.robot.constants.ScoringConstants.ScoringLocation;
import frc.robot.subsystems.Lift;
import frc.robot.subsystems.ScoringElevator.ElevatorSetpoints;

Expand All @@ -20,6 +19,7 @@ public ReverseTrapSequenceCommand() {
() -> lift.getLeftPosition() >= liftTrapPosition
&& lift.getRightPosition() >= liftTrapPosition),
new ScoringElevatorPositionCommand(ElevatorSetpoints.Ground,
FinishActions.NoDisable))));
FinishActions.NoDisable))),
new DrawbridgeUpCommand());
}
}

0 comments on commit 9fdfc41

Please sign in to comment.