Skip to content

Commit

Permalink
housekeeping fo mister poletee
Browse files Browse the repository at this point in the history
  • Loading branch information
tenumars committed Jan 29, 2024
1 parent 492f537 commit 388eab4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/main/java/com/team1701/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,10 @@ public static final class Elevator {
public static final class Indexer {
// TODO: Update values and set names
public static final double kIndexerReduction = 1;
public static final int kIndexerDeviceId = 3;
public static final int kIndexerDeviceId2 = 4;
public static final int kIntakeEntranceId = 1;
public static final int kIntakeExitId = 3;
public static final int kShooterEnterId = 4;
public static final int kShooterExitId = 5;
public static final double kIndexerLoadPercent = .25;
public static final double kIndexerFeedPercent = 1;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/team1701/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public RobotContainer() {
new DigitalIOSensor(Constants.Shooter.kShooterExitSensorId),
new EncoderIOAnalog(Constants.Shooter.kShooterThroughBoreEncoderId)));
indexer = Optional.of(new Indexer(
IndexerMotorFactory.createDriveMotorIOSparkFlex(Constants.Indexer.kIndexerDeviceId),
IndexerMotorFactory.createDriveMotorIOSparkFlex(Constants.Indexer.kIntakeExitId),
new DigitalIOSensor(Constants.Indexer.kIndexerEntranceSensorId),
new DigitalIOSensor(Constants.Indexer.kIndexerExitSensorId)));
break;
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/team1701/robot/commands/IndexCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
public class IndexCommand extends Command {
private final Indexer mIndexer;
private final BooleanSupplier mShouldLoad;
// private boolean elevatorReady = elevator is down
// private boolean intakeSensor = intake has piece

public IndexCommand(Indexer indexer, BooleanSupplier shouldLoad) {
mIndexer = indexer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void periodic() {
Logger.processInputs("Indexer/Motor", mIndexerMotorInputsAutoLogged);
Logger.processInputs("Indexer/ExitSensor", mExitSensorInputs);

// TODO: update sensor values


}

Expand Down

0 comments on commit 388eab4

Please sign in to comment.