Removing unused variables

This commit is contained in:
2023-11-09 14:20:34 -08:00
parent e991c38b72
commit 36d3af564e

View File

@ -258,7 +258,7 @@ public class Autonomoustest extends LinearOpMode {
driveForward(26); driveForward(26);
int blueleft = readColorLeft(); int blueleft = readColorLeft();
int blueright = readColorRight(); int blueright = readColorRight();
double backboard = 29; // double backboard = 29; -- not used
if (blueleft > 50 ) if (blueleft > 50 )
{ {
//telemetry.addData("color sensor","left"); //telemetry.addData("color sensor","left");
@ -398,7 +398,7 @@ public class Autonomoustest extends LinearOpMode {
// onto the next step, use (isBusy() || isBusy()) in the loop test. // onto the next step, use (isBusy() || isBusy()) in the loop test.
while (opModeIsActive() && while (opModeIsActive() &&
(runtime.seconds() < timeoutS) && (runtime.seconds() < timeoutS) &&
(leftDrive.isBusy() && rightDrive.isBusy() && backleftDrive.isBusy() && backrightDrive.isBusy() && backrightDrive.isBusy())) { (leftDrive.isBusy() && rightDrive.isBusy() && backleftDrive.isBusy() && backrightDrive.isBusy())) {
// Display it for the driver. // Display it for the driver.
telemetry.addData("Running to", " %7d :%7d", newLeftTarget, newRightTarget); telemetry.addData("Running to", " %7d :%7d", newLeftTarget, newRightTarget);