Skip to content

Commit

Permalink
add state logging back
Browse files Browse the repository at this point in the history
  • Loading branch information
IanShiii committed Oct 3, 2024
1 parent dcc2f8e commit a40f82b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/stuypulse/robot/subsystems/arm/Arm.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ public State getState() {

@Override
public void periodic() {
// SmartDashboard.putString("Arm/State", state.toString());
SmartDashboard.putString("Arm/State", state.toString());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ && getState() != Intake.State.DEACQUIRING
setState(State.STOP);
}

// SmartDashboard.putString("Intake/State", state.name());
SmartDashboard.putString("Intake/State", state.name());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.stuypulse.robot.subsystems.intake.Intake;
import com.stuypulse.robot.util.ShooterSpeeds;

import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.SubsystemBase;

public abstract class Shooter extends SubsystemBase {
Expand Down Expand Up @@ -62,7 +63,7 @@ public FlywheelState getFlywheelState() {

@Override
public void periodic() {
// SmartDashboard.putString("Shooter/Feeder State", getFeederState().toString());
SmartDashboard.putString("Shooter/Feeder State", getFeederState().toString());

// feeder automatically pushes note further into shooter when its sticking too far out
if (Arm.getInstance().getState() == Arm.State.AMP && !hasNote() && feederState != FeederState.DEACQUIRING) {
Expand Down

0 comments on commit a40f82b

Please sign in to comment.