Changeset 350 in Sophya for trunk/Poubelle/archTOI.old/gpsparser.cc
- Timestamp:
- Aug 4, 1999, 4:10:06 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archTOI.old/gpsparser.cc
r346 r350 1 // gpsparser.cc 2 // Eric Aubourg CEA/DAPNIA/SPP juillet 1999 3 4 1 5 #include <string.h> 2 6 #include <stdio.h> … … 63 67 // $104020,3740.712,N,00400.781,W,0,00,01.0,0003,M,-050,M,, 64 68 65 //#include <fstream.h>66 //#include <iomanip.h>69 #include <fstream.h> 70 #include <iomanip.h> 67 71 //ofstream gpsdump("gpsdump"); 68 72 //ofstream gpsdata("gpsdata"); … … 72 76 strncpy(gpsString, blk->gps, 80); 73 77 char* p = gpsString; 74 //gpsdump << p ; if (p[strlen(p)-1] != '\n') gpsdump << '\n';78 // gpsdump << p ; if (p[strlen(p)-1] != '\n') gpsdump << '\n'; 75 79 char* fence = p+80; 76 80 stringOk = false; … … 154 158 if (*p != 'M') return; 155 159 156 //if (gpsutc < outc) jr += 86400;157 //outc = gpsutc;158 //gpsdata << setprecision(10) << gpsutc + jr << " " << gpslat << " " << gpslong << " " << quality << " " << nsat << '\n';160 // if (gpsutc < outc) jr += 86400; 161 // outc = gpsutc; 162 // gpsdata << setprecision(10) << gpsutc + jr << " " << gpslat << " " << gpslong << " " << quality << " " << nsat << '\n'; 159 163 160 164 stringOk = true;
Note:
See TracChangeset
for help on using the changeset viewer.