Removing unused variables
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user