     servoLeft.writeMicroseconds(1300);
     servoRight.writeMicroseconds(1300);
   }
-  delay(50);
+  delay(100);
   servoLeft.writeMicroseconds(1500);
   servoRight.writeMicroseconds(1500);
 }

// this constant won't change.  It's the pin number
// of the sensor's output:
const int pingPin = 8;

void setup() {
  // initialize serial communication:

void loop() {
  // establish variables for duration of the ping,
  // and the distance result in inches and centimeters:
  

  rotateStep(false);
  pingDist = measurePingDist();
  measurements[nRotations] = pingDist;
  Serial.println(String(measurements[nRotations]));
  ++nRotations %= nMeasurements;

  delay(100);
}
long measurePingDist(){
  long duration, cm;
  // The PING))) is triggered by a HIGH pulse of 2 or more microseconds.
  // Give a short LOW pulse beforehand to ensure a clean HIGH pulse:
  pinMode(pingPin, OUTPUT);
