Trying to log GPS data in a microSD card

Hello all

Im using an arduinoBT, a Parallax GPS module and the libelium microSD module from the playground with TinyGPS and Filelogger libraries in order to log my GPS data to the microSD card.

I can print GPS data using the TinyGPS lib to the serial monitor and save strings to my microSD using the Filelogger lib (2 different scetches)

I wrote a combined program to save my GPS data in the SD card, its compiles but it doesnt seem to work. Heres my code:

#include <NewSoftSerial.h>
#include <TinyGPS.h>
#include <FileLogger.h>

#define MEM_PW 8

#define MESSAGE "Lat/Long(10^-5 deg): "
#define COMMA  ","
#define ENDL "\n"

unsigned long length = sizeof(MESSAGE)-1;

byte buffer1[] = MESSAGE;
byte buffer2[10];
byte buffer3[] = COMMA;
byte buffer4[] = ENDL;

void prinMSG(int);

NewSoftSerial nss(2,3);
TinyGPS gps;
bool feedgps();
long latitude,longitude;
unsigned long age;

int result=0;

void setup()
{
Serial.begin(115200);
nss.begin(4800);

Serial.println(" Testing :...");
}
void loop()
{
    result = FileLogger::append("data.txt", buffer1, length);
    prinMSG(result);
    
    feedgps();
    gps.get_position(&latitude, &longitude, &age);
    
    buffer2[0]=latitude;
    result = FileLogger::append("data.txt", buffer2, 7);
    prinMSG(result);    
    result = FileLogger::append("data.txt", buffer3, 1);
    prinMSG(result);
    
    buffer2[0]=longitude;
    result = FileLogger::append("data.txt", buffer2, 7);
    prinMSG(result);
    result = FileLogger::append("data.txt", buffer4, 1);
    prinMSG(result);

    delay(2000);
}

bool feedgps()
{
  while (nss.available())
  {
    if (gps.encode(nss.read()))
      return true;
  }
  return false;
}

void prinMSG(int result)
{
Serial.print(" Result: ");
        if( result == 0) 
        {
          Serial.println("OK");
        } 
        else if( result == 1) 
        {
          Serial.println("Fail initializing");
        } 
        else if( result == 2) 
        {
          Serial.println("Fail appending");
        }
}

The program is supposed to print a confirmation message on the serial monitor everytime it saves the longtitude and latitude in the SD card, but i get nothing in the txt file that has been previously saved in the SD neither in the serial monitor. Not even the “Testing :…” message included in void setup ().

any thoughts?

for the record, I have my microSD shield connected on the digital pins. Come on guys, need some advice before I try other libraries..

Possible known issue http://code.google.com/p/arduino-filelogger/issues/list

Regards

Chewie Baker