Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void execute() {
@Override
public void end(boolean interrupted) {
armPlusFlywheel.stopFlywheel(); // Stop the flywheel
elevatorSubsystem.elevateTo(ElevatorPositions.safePosition);
elevatorSubsystem.setHeight(ElevatorPositions.safePosition);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void execute() {
// }

if (!CoralPosition.isCoralInTootsieSlide()) {
elevatorSubsystem.elevateTo(ElevatorPositions.Intake);
elevatorSubsystem.setHeight(ElevatorPositions.Intake);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public ElevatorHoldL4(ElevatorSubsystem elevatorSubsystem) {
// Called when the command is initially scheduled.
@Override
public void initialize() {
elevatorSubsystem.elevateTo(ElevatorPositions.LIMIT_OF_TRAVEL);
elevatorSubsystem.setHeight(ElevatorPositions.LIMIT_OF_TRAVEL);
}

// Called every time the scheduler runs while the command is scheduled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ public void initialize() {}
public void execute() {
if (checkIfCoralInTootsie) {
if (CoralPosition.isCoralInTootsieSlide()) {
elevatorSubsystem.elevateTo(pos);
elevatorSubsystem.setHeight(pos);
}
} else {
elevatorSubsystem.elevateTo(pos);
elevatorSubsystem.setHeight(pos);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void initialize() {}

@Override
public void execute() {
elevatorSubsystem.elevateTo(pos);
elevatorSubsystem.setHeight(pos);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void execute() {
public void end(boolean interrupted) {
DogLog.log("subsystems/Elevator/ZeroElevatorHardStop/running", false);
if (!interrupted) {
elevatorSubsystem.resetElevatorPositionToZero();
elevatorSubsystem.zeroElevator();
}
elevatorSubsystem.resetCurrentLimits();
elevatorSubsystem.elevatorHasBeenZeroed();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public ZeroElevatorToFFiltered(ElevatorSubsystem subsystem) {
public void initialize() {
ticksAtPosition = 0;
DogLog.log("subsystems/Elevator/ZeroElevatorToFFiltered/running", true);
elevatorSubsystem.elevateTo(ElevatorPositions.Intake);
elevatorSubsystem.setHeight(ElevatorPositions.Intake);
}

@Override
Expand Down
Loading