Servo Control using PS3BT library

Hello, i trying to control 4 continuous servos simultaneously using PS3BT library.I have set the zero potential for all my servos to value of 130(degree). Using the map function when used map(PS3.getAnalogHat(LeftHatY),0,225,0,180) gives 130(degree) as 163(byte). My problem lies while my first servo follows clockwise and anticlockwise movement correctly but my other servos do not, They stop repeatedly while following any rotation.Any Help????
my code:(with first two servos)

#include <PS3BT.h>
#include <SPI.h>
#include <Servo.h>
USB Usb;
BTD Btd(&Usb);
PS3BT PS3(&Btd,0x00,0x15,0x83,0x0C,0xBF,0xEB);
Servo S1,S2,S3,S4;
void setup()
{

if (Usb.Init() == -1)

{
while(1); //halt
}

S1.attach(2);
S2.attach(4);
}
void loop()
{
Usb.Task();
if(PS3.PS3Connected||PS3.PS3NavigationConnected)
{
if((PS3.getAnalogHat(LeftHatY)>210)||(PS3.getAnalogHat(LeftHatY) <40)) //130(deg)=163(byte)
{
int i=map(PS3.getAnalogHat(LeftHatY),0,225,0,180);
S1.write(i);
S2.write(i);
}

else
S2.write(130);
S1.write(130);
}
if(PS3.getButtonClick(PS))
{
PS3.disconnect();
}
}

if((PS3.getAnalogHat(LeftHatY)>210)||(PS3.getAnalogHat(LeftHatY) <40)) //130(deg)=163(byte)
        {
         int i=map(PS3.getAnalogHat(LeftHatY),0,225,0,180);
         S1.write(i);
         S2.write(i);
        }
     
     else
        S2.write(130);
        S1.write(130);

Did you forget braces on the "else"?

You certainly forgot the code tags.

oow how i did not see ,thanks l

Frozenhox:
oow how i did not see ,thanks l

Are you perhaps one of those programmers who don't use braces when there is only one line of code to be executed as a result of a conditional expression ?

Are you, perhaps, one of those posters who posts the same question multiple times on the same forum?

Well don't be.

Duplicate post deleted.