Nothing else is missing because when I copy it back and add the brace it works the way it always has.
int joy1vin = A1; // analog pin used to connect joystick 1 vertical axis
int joy1v;
int joy1hin = A2;
int joy1h;
int joy1sel = A3;
int joy2vin = A4; // analog pin used to connect joystick 2 vertical axis
int joy2v;
int joy2hin = A5;
int joy2h;
int joy2sel = A6;
int thr1;
int thr2;
int thr3;
int thr4;
int BEEP = 13; // analog speaker connected to pin 13
String serialDataOut;
void setup()
{
Serial.begin(9600);
}
void loop()
{
//while (Serial.available() > 0)
//{
//char serialByte = Serial.read();
//Serial.println(serialByte);
//}
joy1v = analogRead(joy1vin);
joy1v = map(joy1v, 0, 1024, 100, 999);
joy1h = analogRead(joy1hin);
joy1h = map(joy1h, 0, 1024, 100, 999);
joy2v = analogRead(joy2vin);
joy2v = map(joy2v, 0, 1024, 100, 999);
joy2h = analogRead(joy2hin);
joy2h = map(joy2h, 0, 1024, 100, 999);
if (joy1v>600)
thr1=1;
else thr1=0;
if (joy1v<400)
thr2=1;
else thr2=0;
if (joy1h>600)
thr3=1;
else thr3=0;
if (joy1h<400)
thr4=1;
else thr4=0;
Serial.print("A");
Serial.print(thr1, DEC);
Serial.print("B");
Serial.println(thr2, DEC);
Serial.print("C");
Serial.println(thr3, DEC);
Serial.print("D");
Serial.println(thr4, DEC);
}