Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
add debugoi control for running CheckDevices
Browse files Browse the repository at this point in the history
  • Loading branch information
dejabot committed Mar 30, 2024
1 parent 02164ec commit 956510e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/main/java/com/team766/robot/reva/DebugOI.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.team766.robot.reva.mechanisms.Intake;
import com.team766.robot.reva.mechanisms.Shooter;
import com.team766.robot.reva.mechanisms.Shoulder;
import com.team766.robot.reva.procedures.CheckDevices;

/**
* Programmer-centric controls to test each of our (non-drive) mechanisms.
Expand Down Expand Up @@ -147,5 +148,9 @@ protected void handleOI(Context context) {
shooter.stop();
context.releaseOwnership(shooter);
}

if (macropad.getButtonPressed(InputConstants.QUICKTEST)) {
new CheckDevices().run(context);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public final class InputConstants {
public static final int NUDGE_DOWN = 12;
public static final int MACROPAD_PRESET_1 = 13;
public static final int MACROPAD_PRESET_2 = 14;
public static final int MACROPAD_PRESET_3 = 15;
public static final int QUICKTEST = 15;
public static final int MACROPAD_PRESET_4 = 16;

// Joystick buttons
Expand Down

0 comments on commit 956510e

Please sign in to comment.