Need help in coding for GPS Please help.

Hi guys, i get a problem in coding, pls help.

I am currently connecting different sensors with the arduino leonardo.
Sensors:
ADXL 345 (Accelerometer) (3.3 V)
DS1307 (Real time clock) (5V)
BMP085 (Pressure sensor) (3.3V)
SD Card reader (5V)
GPS (MTK3339) http://www.adafruit.com/products/746 (5V)
XBee (Series 1)

I get every sensor work individually. However, when i integrated them tgt, all the sensors are working except the GPS, it doesn't show any reading, only show zero values.

Here is my code for the integrated sensors with arduino leonardo board.

Guys please help me, it is really urgent, it cost 40 credit in my final years. I really cant figure out why i cant get my GPS work when integrate it with other sensors. Thanks a lot. Thankssssssss

Whatever.ino (15.1 KB)

  writeTo(DEVICE, 0x2D, smiley-cool;

WTF?

  Serial.begin(115200);
  Serial1.begin(9600);
  Wire.begin();
  GPS.begin(9600);

  GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCGGA); // only the "minimum recommended" data + ++GGA
  GPS.sendCommand(PMTK_SET_NMEA_UPDATE_1HZ);   // 1 Hz update rate

  //Turning on the ADXL345
  writeTo(DEVICE, 0x2D, 0);     
  writeTo(DEVICE, 0x2D, 16);
  writeTo(DEVICE, 0x2D, smiley-cool;

  bmp085Calibration();
  Serial.begin(9600);      //Opens serial port at 9600 bauds
  Serial1.begin(9600);
  //  while(!Serial){               // waits for the serial port to open before proceeding
  //  }

Can't make up your mind what speeds to use?

What is connected to Serial1?

How much free memory do you have?