Changeset 346 in Sophya for trunk/Poubelle/archTOI.old/gpsparser.cc
- Timestamp:
- Aug 3, 1999, 10:36:14 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archTOI.old/gpsparser.cc
r342 r346 63 63 // $104020,3740.712,N,00400.781,W,0,00,01.0,0003,M,-050,M,, 64 64 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; 70 70 71 71 void GPSParser::ProcessBlock(block_type_gps* blk) { 72 72 strncpy(gpsString, blk->gps, 80); 73 73 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'; 75 75 char* fence = p+80; 76 76 stringOk = false; … … 154 154 if (*p != 'M') return; 155 155 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'; 159 159 160 160 stringOk = true;
Note:
See TracChangeset
for help on using the changeset viewer.