Skip to content

Commit

Permalink
Actually call periodic
Browse files Browse the repository at this point in the history
  • Loading branch information
nab138 committed Feb 15, 2025
1 parent 9844198 commit 9e4480a
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/frc/robot/util/bboard/BBoardIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
public interface BBoardIO {
public boolean isPressed(ButtonInfo button);
public boolean isPressed(SelectButtonInfo<?> button);
public default void periodic(){};
}
1 change: 1 addition & 0 deletions src/main/java/frc/robot/util/bboard/BBoardIOSim.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public BBoardIOSim() {

private ArrayList<ButtonInfo> pressedButtons = new ArrayList<>();

@Override
public void periodic(){
double[] pressed = SmartDashboard.getNumberArray("ButtonBoardSim/Pressed", new double[0]);
pressedButtons.clear();
Expand Down
1 change: 1 addition & 0 deletions src/main/java/frc/robot/util/bboard/ButtonBoard.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public boolean getSelectedAlgaeLocation() {
}

public void periodic(Drive drive) {
boardIO.periodic();
for (SelectButtonInfo<CoralReefLocation> button : reefButtons) {
if (boardIO.isPressed(button)) {
coralReefLocation = button.value();
Expand Down

0 comments on commit 9e4480a

Please sign in to comment.