 
 
 int getMarkovDirection(panTiltPos_t *pt, int changeProb){
-
+  int prob = changeProb;
 
   if(pt->dir == 0){
     pt->dir = 1;
   }
 
-int prob = changeProb;
+
 
   if((pt->dir == 1 && pt->angle >= pt->midAngle) || (pt->dir == -1 && pt->angle <= pt->midAngle)){
     prob += abs(pt->midAngle - pt->angle);

  else if(val < 80){
    return random(750, 1000);
  }
else{
  return random(500, 750);
}
}

  Serial.println(tempVal);
  Serial.println();

  return tempVal;

}

int getMarkovSpeed(int oldSpeed){
  int val = random(101);

  if(oldSpeed == 1){
    if(val < 20){
      return 2;
    }
    else{
      return 1;
    }
  }

  else if(oldSpeed == 2){
    if(val < 20){
      return 3;
    }
    else if(val < 70){
      return 2;
    }
    else{
      return 1;
    }
  }

  else if(oldSpeed == 3){
    if(val < 20){
      return 2;
    }
    else{
      return 3;
    }
  }

  else{
    return constrain(oldSpeed, 1, 3);
  }
}

int markovPause(){
  int val = random(101);

  if(val < 35){
    return random(1000, 2000);
