Lynxmotion ps2 controller + arduino+Jeep 1/8 scale

I'm using a lynxmotion ps2 wireless controller, to controller a old monster truck jeep
i scrapped the circuit board an replaced it with a arduino uno. & at the moment I'm using a L289P shield
as the motor driver. 1 motor for forward an backwards, & a Servo for the steering
everything seems to run fine on its own idk if the ps2 analogs are the problem but ill show the serial print for it.
but when i try an talk to the servo i get nothing from the controllers analog when i shift it left to right.
i used a couple different sketches but idk if its something I'm doing wrong while modifying them ill post 1 example

note; that the orang green an brown are the servo wires hooked up on the L289P shield
servo output: an the ps2 controller wires are the 2 yellow brown an blue wire witch
are hooked up on the Lp298P shield pins

#include <PS2X_lib.h> //for v1.6
#include <Servo.h>
PS2X ps2x;
int PS2 = 0;

Servo myservo;
int pos = 0;

int offset = 0; // put this with the other global variables (above the void setup() function).
int steer = 127; // put this with the other global variables (above the void setup() function).

void setup() {

PS2 = ps2x.config_gamepad(13, 11, 10, 12, true, false); //Настройка выводов: (clock, command, attention, data, true, true)
myservo.attach(9); // attaches the servo on pin 9 to the servo objec //ESC on sigital pin 3
}
void loop()
{
steer = ps2x.Analog(PSS_RX); // read right joystick

if (ps2x.Analog(PSS_RX)) { // trim right
offset += 1;
}
if (ps2x.Analog(PSS_RX)) { // trim left
offset -= 1;
}

steer = steer + offset; // incorporate trim into steer command
if (steer > 180) steer = 180; // enforce upper limit
if (steer < 30) steer = 30; // enforce lower limit

myservo.write(map(steer, 0, 255, 30, 180)); // write steer command

}

1:FF 43:73 0:5A 1:FF 0:FF
OUT:IN Configure
1:FF 44:F3 0:5A 1:0 3:0 0:0 0:0 0:0 0:0
OUT:IN Configure
1:FF 43:F3 0:5A 0:0 5A:0 5A:0 5A:0 5A:0 5A:0
OUT:IN
1:FF 42:73 0:5A 0:FF 0:FF 0:80 0:7F 0:80 0:7F 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
OUT:IN
1:FF 42:73 0:5A 0:FF 0:FF 0:80 0:7F 0:80 0:7F 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
OUT:IN Configure
1:FF 43:73 0:5A 1:FF 0:FF
OUT:IN Configure
1:FF 44:F3 0:5A 1:0 3:0 0:0 0:0 0:0 0:0
OUT:IN Configure
1:FF 43:F3 0:5A 0:0 5A:0 5A:0 5A:0 5A:0 5A:0
OUT:IN
1:FF 42:73 0:5A 0:FF 0:FF 0:80 0:7F 0:80 0:7F 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
Found Controller, configured successful pressures = false
rumble = false
Try out all the buttons, X will vibrate the controller, faster as you press harder;
holding L1 or R1 will print out the analog stick values.
Note: Go to http://www.billporter.info for updates and to report bugs.
DualShock Controller found OUT:IN

3 pressed
OUT:IN
1:FF 42:73 0:5A 0:FB 0:FF 0:80 0:7F 0:80 0:7F 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
OUT:IN
1:FF 42:73 0:5A 0:FF 0:FF 0:80 0:FF 0:FF 0:FF 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
OUT:IN
1:FF 42:73 0:5A 0:FF 0:FF 0:80 0:7F 0:80 0:7F 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
OUT:IN
1:FF 42:73 0:5A 0:FF 0:FF 0:80 0:7F 0:80 0:7F 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
OUT:IN
1:FF 42:73 0:5A 0:FB 0:FF 0:80 0:7F 0:80 0:7F 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
R3 pressed
OUT:IN
1:FF 42:73 0:5A 0:FB 0:FF 0:80 0:7F 0:80 0:7F 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
OUT:IN
1:FF 42:73 0:5A 0:FB 0:FF 0:80 0:7F 0:80 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IN Configure
1:FF 44:F3 0:5A 1:0 3:0 0:0 0:0 0:0 0:0
OUT:IN Configure
1:FF 43:F3 0:5A 0:0 5A:0 5A:0 5A:0 5A:0 5A:0
OUT:IN
1:FF 42:73 0:5A 0:FF 0:FF 0:80 0:80 0:80 0:80 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
OUT:IN
1:FF 42:73 0:5A 0:FF 0:FF 0:80 0:80

steer = ps2x.Analog(PSS_RX); // read right joystick

if (ps2x.Analog(PSS_RX)) { // trim right
offset += 1;
}
if (ps2x.Analog(PSS_RX)) { // trim left
offset -= 1;
}

Why are you comparing an analog reading to true or false? Why, if the value is not zero (i.e. is true) do you add and then subtract 1 from offset?

steer = steer + offset; // incorporate trim into steer command

Since offset never changes, and started at zero, this is pretty useless.

#include <PS2X_lib.h> //for v1.6
#include <Servo.h>
PS2X ps2x;
int PS2 = 0;
Servo LXservo;

void setup() {
LXservo.attach(9);
PS2 = ps2x.config_gamepad(13, 11, 10, 12, true, false); //Настройка выводов: (clock, command, attention, data, true, true)

}

void loop() {
ps2x.read_gamepad();

LXservo.write(map(ps2x.Analog(PSS_RX), 0, 255, 30, 110));

if (ps2x.Analog(PSS_RX) < 65) {

}

if (ps2x.Analog(PSS_RX) > 55) {

}

delay(50);

}

The only thing obvious from your last post is that you haven't learned to post code correctly. It is stupidly simple. Read the stickies at the top of the forum BEFORE you post code again.

You made some changes, leaving useless if statements in it. The code now does something, but you didn't bother to say what it does. You expect the code to do something. Don't make us re-read the entire thread to decipher what you expect it to do.

like i said before i appreciate the feedback, i coulnt imagine how much questions are b
eing asked an answered over an over.......

i just wanted my ps2 controller to control a genuine model car i had
witch is just a motor an a servo back an forward left an right some simple commands
i chose the arduino an controller because i thought id learn something new an i did
im still learning i take interest in this. so again thank u for the feedback

i don't have a teacher so i don't have anybody to ask about this i learn what i can on my own
but,

#include <PS2X_lib.h> //for v1.6
#include <Servo.h>
PS2X ps2x;
int pos = 60
int PS2 = 0;
Servo LXservo;

void setup() {
LXservo.attach(9);
PS2 = ps2x.config_gamepad(13, 11, 10, 12, true, false); //Настройка выводов: (clock, command, attention, data, true, true)

}

void loop() {

LXservo.write(map(ps2x.Analog(PSS_RX), 0, 255, 30, 110));

if (ps2x.Analog(PSS_RX) < 75) {
LXservo.write (110);

}
else {
LXservo.write(60);
}

if (ps2x.Analog(PSS_RX) > 65) {

LXservo.write (30);
}
else {
LXservo.write(60);
}

delay(50);

}

#include <PS2X_lib.h> //for v1.6
#include <Servo.h>
PS2X ps2x;
int pos = 0;
int PS2 = 0;

Servo myservo; // create servo object to control a servo
// twelve servo objects can be created on most boards

// variable to store the servo position

void setup() {

myservo.attach(9); // attaches the servo on pin 9 to the servo object
PS2 = ps2x.config_gamepad(13, 11, 10, 12, true, false); //Настройка выводов: (clock, command, attention, data, true, true)

}

void loop() {
myservo.write(map(ps2x.Analog(PSS_RX), 0, 255, 30, 110));

if (ps2x.Analog(PSS_RX) < 75)
myservo.write (pos += 2); { // 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
}
if (ps2x.Analog(PSS_RX) > 65)
myservo.write ( pos -= 2); { // goes from 180 degrees to 0 degrees
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}

still no luck

still no luck

It does NOT require luck to post code properly.
It does NOT require luck to say what the program actually does.
It does NOT require luck to write proper code.

It DOES require luck to win the lottery.

I did get everything working on my own with "LUCK" so thank u for any help at all. An further more the forum is very discouraging..... so if any newbies need any advice I'd love to answer all the newbie questions, I had but never got an answer too from the Arduino so call help forum

I'll post my project later on with full detail so people wouldn't have to deal with the so call so in the forum that's supposed to help others. I helped myself
An that's the first advice u should take because dealing with this forum will discourage u