From 7f36181891de2fb48413d97ac68c942f8279d043 Mon Sep 17 00:00:00 2001 From: aarav18 Date: Fri, 18 Mar 2022 22:50:39 -0600 Subject: [PATCH] the chose one --- .../frc4388/robot/commands/CommandChooser.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/frc4388/robot/commands/CommandChooser.java b/src/main/java/frc4388/robot/commands/CommandChooser.java index be1e273..bbd1410 100644 --- a/src/main/java/frc4388/robot/commands/CommandChooser.java +++ b/src/main/java/frc4388/robot/commands/CommandChooser.java @@ -20,7 +20,7 @@ public class CommandChooser extends CommandBase { private Boolean b1; private Boolean b2; - private Command chosen; + private Command theChosenOne; /** Creates a new CommandChooser. */ public CommandChooser(Command c1, Command c2, BooleanSupplier bs1, BooleanSupplier bs2) { @@ -37,7 +37,7 @@ public class CommandChooser extends CommandBase { addRequirements((Subsystem[]) allReqs.toArray()); } - public Command getChosen() { + public Command getTheChosenOne() { if (this.b1) { return this.c1; } else { @@ -48,25 +48,25 @@ public class CommandChooser extends CommandBase { // Called when the command is initially scheduled. @Override public void initialize() { - this.chosen = getChosen(); - this.chosen.initialize(); + this.theChosenOne = getTheChosenOne(); + this.theChosenOne.initialize(); } // Called every time the scheduler runs while the command is scheduled. @Override public void execute() { - this.chosen.execute(); + this.theChosenOne.execute(); } // Called once the command ends or is interrupted. @Override public void end(boolean interrupted) { - this.chosen.end(interrupted); + this.theChosenOne.end(interrupted); } // Returns true when the command should end. @Override public boolean isFinished() { - return this.chosen.isFinished(); + return this.theChosenOne.isFinished(); } }