@@ -59,10 +59,6 @@ private static class StateEntry {
5959 public MarrowGamepad gamepad1 ;
6060 public MarrowGamepad gamepad2 ;
6161
62- public abstract void onStateMachineStart ();
63-
64- public abstract void preAutonomousSetup ();
65-
6662 public abstract void onInit ();
6763 public void onInitLoop () {};
6864 public void onStart () {};
@@ -108,7 +104,6 @@ private void internalEarlyInit() {
108104 }
109105
110106 private void internalLateInit () {
111- preAutonomousSetup ();
112107 }
113108
114109 private void internalInitLoop (){
@@ -117,8 +112,6 @@ private void internalInitLoop(){
117112
118113 private void internalStart () {
119114 runtime .reset ();
120-
121- onStateMachineStart ();
122115 }
123116
124117 private void internalLoop () {
@@ -267,32 +260,6 @@ protected void transition(String stateName) {
267260 setCurrentState (stateName );
268261 }
269262
270- /**
271- * Transitions to the specified state if the given condition is true.
272- *
273- * @param condition The condition to evaluate
274- * @param stateName The name of the state to transition to, if the condition is true
275- */
276- protected void conditionalTransition (boolean condition , String stateName ) {
277- if (condition ) {
278- transition (stateName );
279- }
280- }
281-
282- /**
283- * Conditionally transitions to one of two states based on the given condition.
284- * <p>
285- * If the condition is true, transitions to {@code trueState}; otherwise, transitions to {@code falseState}.
286- * </p>
287- *
288- * @param trueState The name of the state to transition to, if the condition is true
289- * @param falseState The name of the state to transition to, if the condition is false
290- * @param condition The condition to evaluate
291- */
292- protected void conditionalTransition (boolean condition , String trueState , String falseState ) {
293- transition (condition ? trueState : falseState );
294- }
295-
296263 /**
297264 * Gets the remaining time in the autonomous period in seconds.
298265 */
0 commit comments