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