 }
 
 void shake(){
-  int moveVal = 5;
+  int moveVal = 10;
   panTiltX.angle += moveVal;
   panTilt.updateAngles();
   delay(10);

    v1.1.0 - Added Markov-based speed control
    v1.2.0 - Added Markov-based pause length/frequency
    v1.2.1 - Added Heartbeat during pause
*/
/**************************************************************************/


  panTilt.updateAngles();
  delay(10);
}


int markovState(int prob1, int prob2){
  static int markovState;
  int probVal = random(10001);
  if(!markovState){
    markovState = 2;
  }

  if(markovState == 1){
    if(probVal <= prob1){
      markovState = 2;
    }
  }
  else if(markovState == 2){
    if(probVal <= prob2){
      markovState = 1;
    }
  }

  return markovState;
}
