GolamMostafa:
1. Use software UART Port (SUART) to connect your HC05 as per following diagram (Fig-1) with the controller.

Figure-1:
2. Upload the following sketch in your controller UNO -- your one slightly modified.
#include<SoftwareSerial.h>
SoftwareSerial SUART(2, 3); //SRX = DPin-2 of UNO <-- TX of HC05 directly
//STX = DPin-3 of UNO --> RX of HCo5 via divider
int x=0;
int y=0;
int xa=A0;
int ya=A1;
void setup()
{
Serial.begin(38400);
}
void loop()
{
x = analogRead(xa);
y = analogRead(ya);
Serial.write(map(x, 0, 1023, 0, 255));
Serial.print(','); //data item separator
Serial.write(map(y, 0, 1023, 0, 255));
Serial.print('\n'); //end-of-msg mark
delay(20);
}
**3.** Upload the following sketch in your car UNO -- your sketch is slightly modified.
#include<Servo.h>
Servo myservo;
#define enA 9
#define in1 10
#define in2 11
int servo = 8;
int ang = 0;
int xAxis, yAxis;
unsigned int x = 0;
unsigned int y = 0;
int motorSpeed = 0;
byte myData[10];
void setup()
{
pinMode(enA, OUTPUT);
pinMode(in1, OUTPUT);
pinMode(in2, OUTPUT);
pinMode(servo, OUTPUT);
Serial.begin(9600);//(38400);
myservo.attach(8);
}
void loop()
{
byte n = Serial.available();
if (n != 0)
{
byte n = Serial.readBytesUntil('\n', myData, 10);
x = myData[0];
x = map(x, 0, 255, 0, 1023);
y = myData[2];
y = map(y, 0, 255, 0, 1023);
//x = 510 / 4;
//y = 510 / 4;
//while (Serial.available() >= 2)
//{
//x = Serial.read();
//delay(10);
//y = Serial.read();
//}
//delay(10);
xAxis = x;// * 4;
yAxis = y ;//* 4;
if (yAxis < 470)
{
digitalWrite(in1, HIGH);
digitalWrite(in2, LOW);
}
else if (yAxis > 550)
{
digitalWrite(in1, LOW);
digitalWrite(in2, HIGH);
}
else
{
motorSpeed = 0;
}
if (xAxis < 470 && xAxis > 550)
{
ang = map(xAxis, 0, 1023, 10, 100);
myservo.write(ang);
}
else
{
myservo.write(60);
}
}
}
1)Should i get on the serial panel of the slave the same stuff that's on the controller panel (after having addes Serial.print to the sketch)?
2)on the slave sketch i should use 38400 baud.
3)how can you make the slave read anything if you don't say to him where is the pin to read from?