opposite directions

I have two servos, they are end to end making one we will say rotating clockwise and the other counter clockwise, can i just add - 180 deg

If you want one servo to be at 170 deg and the other at 10 deg and if the variable pos has the value 170 the position of the second one will be 180 - pos

...R

sorry i might have left something out the both need to turn 180 deg but because of their position they need to turn opposite directions but being one is clockwise and the other counter clockwise they travel the same direction simultaneously

How about this - instead of giving us an X-Y Problem - why don't you ask us about your actual problem; ie - what problem are you actually attempting to solve.

For all we know - servos might be a poor solution to what you are trying to do!

But we don't know if you are trying to move a robot platform, twist a pretzel, or move a pair of clock hands in a funny way (or any number of other possibilities).

Until we know what you are needing the solution for, what exactly you are trying to do - we can't give you a reliable answer to your actual problem.

there is this application where force sensors activated the servos but with space they are end to end making the rotation opposite

Below is the typical reverse rotation setup.

//zoomkat 10-09-14 serial servo test
//type servo position 0 to 180 in serial monitor
//opposite side servos rotate together

String readString;
#include <Servo.h> 
Servo myservo1;  // create servo object to control a servo 
Servo myservo2;

void setup() {
  Serial.begin(9600);
  myservo1.attach(8);
  myservo2.attach(9);
  Serial.println("servo-test"); // so I can keep track of what is loaded
}

void loop() {

  while (Serial.available()) {
    char c = Serial.read();  //gets one byte from serial buffer
    readString += c; //makes the String readString
    delay(2);  //slow looping to allow buffer to fill with next character
  }

  if (readString.length() >0) {
    Serial.println(readString);  //so you can see the captured String 
    int n = readString.toInt();  //convert readString into a number
    myservo1.write(n);
    myservo2.write(180-n); //turns opposide servo in desired direction
    readString="";
  } 
}

I have a Sensor Shield V4 Digital Analog Module & Servo Motor For Arduino UNO Duemilanove

If the 180-pos from Replies #1 and #5 isn't working for you, you need to give us a sketch or photo of what you're trying to describe in words.

can i just add - 180 deg

Did you try your own suggestion?