Subversion Repositories NaviCtrl

Rev

Rev 739 | Rev 792 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 739 Rev 742
Line 293... Line 293...
293
 
293
 
294
        if(doc->file != NULL)                                                                                                           // could the file be opened?
294
        if(doc->file != NULL)                                                                                                           // could the file be opened?
295
        {
295
        {
296
                retvalue = 1;                                                                                                                   // the document could be created on the drive.
296
                retvalue = 1;                                                                                                                   // the document could be created on the drive.
297
                doc->state = TRIG_DOC_OPENED;                                                                                           // change document state to opened. At next a placemark has to be opened.
297
                doc->state = TRIG_DOC_OPENED;                                                                                           // change document state to opened. At next a placemark has to be opened.
298
                sprintf(string, "#Counter;Time;Longitude;Latitude;GPSAltitude[m](raw);BaroAltitude[m];Compass[deg];ServoSetpoint(raw);ServoPoi[deg]");
298
                sprintf(string, "#Counter;Time;Latitude;Longitude;GPSAltitude[m](raw);BaroAltitude[m];Compass[deg];ServoSetpoint(raw);ServoPoi[deg]");
299
                fputs_(string, doc->file);
299
                fputs_(string, doc->file);
300
                sprintf(string, "\r\n#%4i.%02i.%02i Nr:%i (%02i%02i%02i%02i.GPX)", SystemTime.Year, SystemTime.Month, SystemTime.Day, TRIG_Filenum, SystemTime.Year%100, SystemTime.Month, SystemTime.Day, GPX_Filenum);
300
                sprintf(string, "\r\n#%4i.%02i.%02i Nr:%i (%02i%02i%02i%02i.GPX)", SystemTime.Year, SystemTime.Month, SystemTime.Day, TRIG_Filenum, SystemTime.Year%100, SystemTime.Month, SystemTime.Day, GPX_Filenum);
301
                fputs_(string, doc->file);
301
                fputs_(string, doc->file);
302
                if(SimulationFlags) { sprintf(string, " SIMULATED"); fputs_(string, doc->file);};
302
                if(SimulationFlags) { sprintf(string, " SIMULATED"); fputs_(string, doc->file);};