 void setup() {
   Serial.begin(9600);
   
-  //ServoVertical.attach(0);
-  ServoHorizontal.attach(11);
-  
+  ServoVertical.attach(15);
+  ServoHorizontal.attach(14);
+  //servos must be powered by 3.3v on arduino
+  //otherwise it could crash the wifi shield
+  
+  ServoHorizontal.write(ServoAngH);
+  ServoVertical.write(ServoAngV);
   
   pinMode(MD1,OUTPUT);
   pinMode(MD2,OUTPUT);

  //4 left
  
  switch (dir){
    case (1):
      //avancer
      digitalWrite(MD1,LOW);

    Udp.endPacket();
  }
  if (CameraMoving){
    if (String(packetBuffer).equals("Cup") && ServoAngV < 180){
        ServoAngV += 1;
      }
      else if (String(packetBuffer).equals("Cdown") && ServoAngV > 0){
        ServoAngV -= 1;
      }
      else if (String(packetBuffer).equals("Cright") && ServoAngH < 180){
        ServoAngH += 1;
      }
      else if (String(packetBuffer).equals("Cleft") && ServoAngH > 0){
        ServoAngH -= 1;
      }
      ServoHorizontal.write(ServoAngH);
      ServoVertical.write(ServoAngV);
      
      Serial.println(ServoAngV);
  }
}
