testing joystick

Hi - I connected my playstation ps2 joystick after making some modification. I am basically connecting the potentiometers to analog pins of arduino and wanted to see some numbers for throttle, roll etc., based on the movement of joystick.

what i get in the serial monitor is many weird characters like,
b⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮

⸮⸮⸮⸮⸮n⸮⸮⸮⸮~⸮wovo⸮u⸮⸮ñ⸮u⸮⸮⸮⸮⸮⸮?⸮+⸮⸮⸮⸮W⸮o}⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮o⸮⸮x⸮⸮?⸮⸮sw⸮⸮y⸮⸮ֿ⸮⸮{|⸮⸮⸮⸮⸮⸮G⸮⸮⸮⸮[⸮⸮⸮⸮⸮ݾ[0|~Z⸮⸮⸮⸮vBη}'O⸮⸮˷g⸮⸮;⸮⸮⸮⸮{⸮⸮l⸮s⸮=⸮⸮^⸮yi6O⸮⸮}%ݘQ%⸮⸮,v⸮C⸮K⸮⸮⸮WO⸮/>⸮⸮l⸮}⸮3[⸮>7⸮⸮1_⸮

i am new at this, i hope you could check my code and offer suggestions.


#include <SPI.h>
#include <Servo.h>

struct MyData {
byte throttle;
byte yaw;
byte pitch;
byte roll;
};
int throttle = 0;
int yaw = 1;
int pitch = 2;
int roll = 3;

MyData data;

void resetData()
{
pinMode(throttle, INPUT);
pinMode(yaw, INPUT);
pinMode(pitch, INPUT);
pinMode(roll, INPUT);

Serial.begin(9600);
data.throttle = 0;
data.yaw = 127;
data.pitch = 127;
data.roll = 127;
data.AUX1 = 0;
data.AUX2 = 0;
}

void setup()
{

resetData();
}

/**************************************************/

// Returns a corrected value for a joystick position that takes into account
// the values of the outer extents and the middle of the joystick range.
int mapJoystickValues(int val, int lower, int middle, int upper, bool reverse)
{
val = constrain(val, lower, upper);
if ( val < middle )
val = map(val, lower, middle, 0, 128);
else
val = map(val, middle, upper, 128, 255);
return ( reverse ? 255 - val : val );
}

void loop()
{
// The calibration numbers used here should be measured
// for your joysticks till they send the correct values.
data.throttle = mapJoystickValues( analogRead(A0), 13, 524, 1015, true );
data.yaw = mapJoystickValues( analogRead(A1), 1, 505, 1020, true );
data.pitch = mapJoystickValues( analogRead(A2), 12, 544, 1021, true );
data.roll = mapJoystickValues( analogRead(A3), 34, 522, 1020, true );
data.AUX1 = digitalRead(4); //The 2 toggle switches
data.AUX2 = digitalRead(5);
Serial.println(“throttle =” + ( analogRead(A0)));Serial.print("\n");
delay(1000);
Serial.println(" Yaw = " + char(data.yaw));Serial.print("\n");
Serial.println(" rudder = " + char(data.pitch));Serial.print("\n");
delay(1000);
Serial.println(" elevator =" + char(data.roll));Serial.print("\n");
delay(1000);

}

make sure your Serial monitor is set to 9600 as you have set it to that in your program

 Serial.begin(9600);

Z