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);
int blueleft = readColorLeft();
int blueright = readColorRight();
double backboard = 29;
// double backboard = 29; -- not used
if (blueleft > 50 )
{
//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.
while (opModeIsActive() &&
(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.
telemetry.addData("Running to", " %7d :%7d", newLeftTarget, newRightTarget);