Skip to content

Commit

Permalink
add states to a states folder to make viewing easier
Browse files Browse the repository at this point in the history
  • Loading branch information
IanShiii committed Oct 11, 2024
1 parent 32506d8 commit d99ba8f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/stuypulse/robot/subsystems/arm/Arm.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ public State getState() {
@Override
public void periodic() {
SmartDashboard.putString("Arm/State", state.toString());
SmartDashboard.putString("States/Arm", state.toString());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@ && getState() != Intake.State.DEACQUIRING
}

SmartDashboard.putString("Intake/State", state.name());
SmartDashboard.putString("States/Intake", state.name());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public FlywheelState getFlywheelState() {
@Override
public void periodic() {
SmartDashboard.putString("Shooter/Feeder State", getFeederState().toString());
SmartDashboard.putString("States/Feeder", 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 d99ba8f

Please sign in to comment.