   Serial.begin(9600);
   for(int i = 0; i < 9; i++) {
     servos[i].attach(pins[i]);
-    servo_pos[9] = (int)random(0,360);
+    servos[i].write(servo_high[i]);
+  // servo_pos[9] = (int)random(0,360);
   }
+  
+  //s0.attach(pins[0]);
+
+  
+  
 }
 
 void loop()
 {
-  for(int i = 0; i < 9; i++) {
-    float servo_pos_rads = servo_pos[9]/180*3.1415926535
+  sweep_servo(random(8));
+  delay(500);
+  /*for(int i = 0; i < 9; i++) {
+    float servo_pos_rads = servo_pos[9]/180*3.1415926535;
     
     double nextpos = (sin(servo_pos_rads) + 1)/2;
     int lo = servo_low[i];

    for(int j = 0; j < 9; j++)
    {
      if(heights[j] != servo_high[j])
        heights[j]++;
    }  
  }
  
  Serial.println("sweep of all servos complete");
}
*/
/* sweep_servo - moves single servo down to lowest height
 * and back up to max height. works regardless of starting
 * position of the servo


/* for each servo (corresponding to the index), the arduino pin
 * at which it's attached */
int pins[] = {2,3,4,5,6,7,8,9,10};

/* high and low values platform corresponding to each servo */
int servo_low[] = {130, 140, 150, 4, 60, 143, 8, 154, 150};
