+ protected void measureLake(){
+ long time = System.currentTimeMillis();
+ rightMotor.backward();
+ leftMotor.backward();
+ while(System.currentTimeMillis()-time < 250){
+ Thread.yield();
+ }
+
+ rightMotor.stop(true);
+ leftMotor.stop(true);
+ rightMotor.setSpeed(25);
+ leftMotor.setSpeed(25);
+ if(sensors.leftLight() && !sensors.rightLight()){
+ leftTurn(15);
+ } else if (sensors.rightLight() && !sensors.leftLight()){
+ rightTurn(15);
+ }
+
+ rightMotor.stop(true);
+ leftMotor.stop(true);
+