 //
 const double RADIANS_PER_DEGREE = 0.0174532925;
 
-const int LEFT_LIMIT = 20;
+const int LEFT_LIMIT = 40;
 const int RIGHT_LIMIT = 130;
 
-// milliseconds to wait between servo movement
+// milliseconds to wait between servo movement: when servo is gently oscillating
 const int GENTLE_DELAY = 30;
+
+// milliseconds to wait between servo movement: when servo is shaking back & forth
+const int SHAKE_DELAY = 7;
 
 // maximum servo movement per iteration
 const int ANGLE_INCREMENT = 3;


void loop()
{
  oscillateGently();
}

void oscillateGently()

//
int shakeServo(int startAngle, int numShakes)
{
  const int offCenter = 25;

  int rightEnd = startAngle + offCenter;
  int leftEnd = startAngle - offCenter;

  turnServo(myservo, startAngle, rightEnd, SHAKE_DELAY);
  turnServo(myservo, rightEnd, leftEnd, SHAKE_DELAY);
  for (int ii = 0; ii < numShakes ; ii++)
  {
    turnServo(myservo, leftEnd, rightEnd, SHAKE_DELAY);
    turnServo(myservo, rightEnd, leftEnd, SHAKE_DELAY);
  }
  turnServo(myservo, leftEnd,  startAngle, SHAKE_DELAY);

  return startAngle;
}
