Ignore:
Timestamp:
Aug 3, 1999, 10:36:14 AM (26 years ago)
Author:
ansari
Message:

030899

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archTOI.old/gpsparser.cc

    r342 r346  
    6363// $104020,3740.712,N,00400.781,W,0,00,01.0,0003,M,-050,M,,
    6464
    65 #include <fstream.h>
    66 #include <iomanip.h>
    67 ofstream gpsdump("gpsdump");
    68 ofstream gpsdata("gpsdata");
    69 double outc = 0; double jr = 0;
     65//#include <fstream.h>
     66//#include <iomanip.h>
     67//ofstream gpsdump("gpsdump");
     68//ofstream gpsdata("gpsdata");
     69//double outc = 0; double jr = 0;
    7070
    7171void GPSParser::ProcessBlock(block_type_gps* blk) {
    7272  strncpy(gpsString, blk->gps, 80);
    7373  char* p = gpsString;
    74   gpsdump << p ; if (p[strlen(p)-1] != '\n') gpsdump << '\n';
     74 // gpsdump << p ; if (p[strlen(p)-1] != '\n') gpsdump << '\n';
    7575  char* fence = p+80;
    7676  stringOk = false;
     
    154154  if (*p != 'M') return;
    155155
    156   if (gpsutc < outc) jr += 86400;
    157   outc = gpsutc;
    158   gpsdata << setprecision(10) << gpsutc + jr << " " << gpslat << " " << gpslong << " " << quality << " " << nsat << '\n';
     156  //if (gpsutc < outc) jr += 86400;
     157  //outc = gpsutc;
     158  //gpsdata << setprecision(10) << gpsutc + jr << " " << gpslat << " " << gpslong << " " << quality << " " << nsat << '\n';
    159159
    160160  stringOk = true;
Note: See TracChangeset for help on using the changeset viewer.