Skip to content

Commit

Permalink
oopsy doopsy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan1522 authored Oct 9, 2024
1 parent dd04881 commit d8ea523
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/main/java/frc/robot/subsystems/indexer/Indexer.java
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package frc.robot.subsystems.indexer;

public class Indexer extends SubsystemBase {
private IndexerIOInputs io
private IndexerIOInputs io;
private IndexerIOInputsAutoLogged inputs = new IndexerIOInputsAutoLogged();

public Indexer(IndexerIOInputs io) {
this.io = io;
}

public setIndexerSpeed(double speed) {
public void setIndexerSpeed(double speed) {
io.setSpeed(speed);
Logger.recordOutput("Indexer", speed);
}

public stop() {
public void stop() {
io.stop();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public class IndexerIOSim implements IndexerIO {

private double indexerAppliedVolts = 0.0;

public IndexerIO() {
public IndexerIOSim() {
indexerSim.update(0.02);

inputs.isConnected = true;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/subsystems/intake/IntakeIOSim.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public IntakeIOSim() {

@Override
public void setPivotPosition(double position) {
pivotSim.setInputVoltage(pivotController.calculate(position, pivotSim.getAngleRads() / (Math.PI * 2)) + pivotFF.calculate(pivotContoller.getSetpoint().velocity))
pivotSim.setInputVoltage(pivotController.calculate(position, pivotSim.getAngleRads() / (Math.PI * 2)) + pivotFF.calculate(pivotContoller.getSetpoint().velocity));
}

@Override
Expand All @@ -43,7 +43,7 @@ public void setIntakeSpeed(double speed) {

@Override
public double getIntakeSpeed() {
return intakeSim.getVelocityRadPerSec() / (Math.PI * 2)
return intakeSim.getVelocityRadPerSec() / (Math.PI * 2);
}

@Override
Expand Down

0 comments on commit d8ea523

Please sign in to comment.