Skip to content

Commit

Permalink
changed everything related to speaker to trap
Browse files Browse the repository at this point in the history
  • Loading branch information
Pointy Ice committed Feb 2, 2024
1 parent 35f7043 commit 5df109b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import frc.robot.subsystems.elevator.ElevatorState;
import frc.robot.subsystems.elevator.ElevatorSubsystem;

public class ElevatorToSpeakerCommand extends Command{
public class ElevatorToTrapCommand extends Command{
private ElevatorSubsystem elevatorSubsystem;
public ElevatorToSpeakerCommand(ElevatorSubsystem elevatorSubsystem){
public ElevatorToTrapCommand(ElevatorSubsystem elevatorSubsystem){
this.addRequirements(elevatorSubsystem);
this.elevatorSubsystem = elevatorSubsystem;
}
Expand All @@ -18,11 +18,11 @@ public void end(boolean interrupted){

@Override
public void execute(){
this.elevatorSubsystem.setTargetState(ElevatorState.SPEAKER);
this.elevatorSubsystem.setTargetState(ElevatorState.TRAP);
}

@Override
public boolean isFinished(){
return elevatorSubsystem.atState(ElevatorState.SPEAKER);
return elevatorSubsystem.atState(ElevatorState.TRAP);
}
}

0 comments on commit 5df109b

Please sign in to comment.