Skip to content

Commit

Permalink
Rename GenericRollerSubsystem to GenericRollerSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
camearle20 committed Feb 13, 2024
1 parent ce023f4 commit f7a25c8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.littletonrobotics.junction.Logger;

@RequiredArgsConstructor
public abstract class GenericRollerSubsystem<G extends GenericRollerSubsystem.VoltageGoal> {
public abstract class GenericRollerSystem<G extends GenericRollerSystem.VoltageGoal> {
protected interface VoltageGoal {
DoubleSupplier getVoltageSupplier();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import org.littletonrobotics.frc2024.subsystems.rollers.GenericRollerSubsystem;
import org.littletonrobotics.frc2024.subsystems.rollers.GenericRollerSystem;
import org.littletonrobotics.frc2024.util.LoggedTunableNumber;

public class Feeder extends GenericRollerSubsystem<Feeder.Goal> {
@Setter
@Getter
public class Feeder extends GenericRollerSystem<Feeder.Goal> {
@RequiredArgsConstructor
@Getter
public enum Goal implements GenericRollerSubsystem.VoltageGoal {
public enum Goal implements GenericRollerSystem.VoltageGoal {
IDLE(() -> 0.0),
FLOOR_INTAKING(new LoggedTunableNumber("Feeder/FloorIntakingVoltage", 8.0)),
BACKSTOPPING(new LoggedTunableNumber("Feeder/BackstoppingVoltage", -4.0)),
Expand All @@ -20,7 +22,7 @@ public enum Goal implements GenericRollerSubsystem.VoltageGoal {
private final DoubleSupplier voltageSupplier;
}

@Getter @Setter private Feeder.Goal goal = Feeder.Goal.IDLE;
private Feeder.Goal goal = Feeder.Goal.IDLE;

public Feeder(FeederIO io) {
super("Feeder", io);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import org.littletonrobotics.frc2024.subsystems.rollers.GenericRollerSubsystem;
import org.littletonrobotics.frc2024.subsystems.rollers.GenericRollerSystem;
import org.littletonrobotics.frc2024.util.LoggedTunableNumber;

@Setter
@Getter
public class Indexer extends GenericRollerSubsystem<Indexer.Goal> {
public class Indexer extends GenericRollerSystem<Indexer.Goal> {
@RequiredArgsConstructor
@Getter
public enum Goal implements VoltageGoal {
Expand All @@ -22,7 +22,7 @@ public enum Goal implements VoltageGoal {
private final DoubleSupplier voltageSupplier;
}

@Getter @Setter private Indexer.Goal goal = Indexer.Goal.IDLE;
private Indexer.Goal goal = Indexer.Goal.IDLE;

public Indexer(IndexerIO io) {
super("Indexer", io);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import org.littletonrobotics.frc2024.subsystems.rollers.GenericRollerSubsystem;
import org.littletonrobotics.frc2024.subsystems.rollers.GenericRollerSystem;
import org.littletonrobotics.frc2024.util.LoggedTunableNumber;

public class Intake extends GenericRollerSubsystem<Intake.Goal> {
@Setter
@Getter
public class Intake extends GenericRollerSystem<Intake.Goal> {
@RequiredArgsConstructor
@Getter
public enum Goal implements VoltageGoal {
Expand All @@ -19,7 +21,7 @@ public enum Goal implements VoltageGoal {
private final DoubleSupplier voltageSupplier;
}

@Getter @Setter private Goal goal = Goal.IDLE;
private Goal goal = Goal.IDLE;

public Intake(IntakeIO io) {
super("Intake", io);
Expand Down

0 comments on commit f7a25c8

Please sign in to comment.