diff --git a/core/src/main/java/com/seattlesolvers/solverslib/command/CommandOpMode.java b/core/src/main/java/com/seattlesolvers/solverslib/command/CommandOpMode.java index 163a8fc1..a727ff36 100644 --- a/core/src/main/java/com/seattlesolvers/solverslib/command/CommandOpMode.java +++ b/core/src/main/java/com/seattlesolvers/solverslib/command/CommandOpMode.java @@ -47,6 +47,7 @@ public void runOpMode() throws InterruptedException { while (opModeInInit()) { initialize_loop(); } + preRun(); while (opModeIsActive()) { run(); } @@ -61,6 +62,11 @@ public void runOpMode() throws InterruptedException { public abstract void initialize(); + /** + * Runs before the OpMode is active and after init. + */ + public void preRun() {} + /** * Runs at the end (when opMode is no longer active) of CommandOpMode */