two servos (for wings) opposite direction

UKHeliBob:
If you want the servos to move in complementary directions you can do it with a for loop

for (int pos = 0; pos <= 180; pos++)

{
  servo1.write(pos);
  servo2.write(180 - pos);
  delay(whatever);  //if you need it
}



Adjust the limits of the for loop to suit your requirements.

Thank you UKHeliBob...

Before we put in the while loop we actually did put in a FOR loop.. It worked but, we were still experiencing the wings go past their initial set position.... and also whipping instead of going slow...
Here was that bit of code:

for(pos = 60; pos < 150; pos +=1) // goes from 0 degrees to 180 degrees
{ // in steps of 1 degree
myservo.write(pos); // tell servo to go to position in
// variable 'pos'
delay(15); // waits 15ms for the servo to reach
// the position

//Serial.println(pos);
}

//for servo two

for(pos1 = 150; pos1>=60; pos1 -=1) // goes from 180 degrees to 0 degrees
{
myservo1.write(pos1); // tell servo to go to position in
// variable 'pos'
delay(15); // waits 15ms for the servo to reach
// the position
//Serial.println(pos1);
}

When we did the FOR loop this way, one wing would go first, then the other after. The way you have it makes way more sense.

Right now, we are first going to get a read out of the servo position when it goes all the way down. Then break this code into smaller pieces as you have all suggested. We will post a photo of the board later today once we have added the second power source in parallel...

Question: we were reading something about saving power for the servos use you can "detach" and "reattach"? So, when the servos reach their up position, we can detach and the servo will lock in position... Same with servos being down. Are we making any sense?