Changeset 524 in ntrip
- Timestamp:
- Oct 18, 2007, 3:14:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r523 r524 205 205 if (_ephStream) { 206 206 207 QDateTime datTim = dateAndTimeFromGPSweek(ep->GPSweek, ep->TOC);208 209 207 QString line; 210 208 209 struct converttimeinfo cti; 210 converttime(&cti, ep->GPSweek, ep->TOC); 211 211 212 if (RINEX_3) { 212 line.sprintf("G%02d %04d %02d %02d %02d %02d %02d%19.12e%19.12e%19.12e", 213 ep->satellite, datTim.date().year(), 214 datTim.date().month(), datTim.date().day(), 215 datTim.time().hour(), datTim.time().minute(), 216 datTim.time().second(), ep->clock_bias, 217 ep->clock_drift, ep->clock_driftrate); 213 line.sprintf("G%02d %04d %02d %02d %02d %02d %02d%19.12e%19.12e%19.12e\n", 214 ep->satellite, cti.year, cti.month, cti.day, cti.hour, 215 cti.minute, cti.second, ep->clock_bias, ep->clock_drift, 216 ep->clock_driftrate); 218 217 } 219 218 else { 220 line.sprintf("%02d %02d %02d %02d %02d %02d%05.1f%19.12e%19.12e%19.12e", 221 ep->satellite, datTim.date().year()%100, 222 datTim.date().month(), datTim.date().day(), 223 datTim.time().hour(), datTim.time().minute(), 224 (double) datTim.time().second(), ep->clock_bias, 219 line.sprintf("%02d %02d %02d %02d %02d %02d%05.1f%19.12e%19.12e%19.12e\n", 220 ep->satellite, cti.year%100, cti.month, cti.day, cti.hour, 221 cti.minute, (double) cti.second, ep->clock_bias, 225 222 ep->clock_drift, ep->clock_driftrate); 226 223 } … … 274 271 if (_ephStream) { 275 272 276 int w = ep->GPSWeek, tow = ep->GPSTOW, i;277 struct converttimeinfo cti;278 279 updatetime(&w, &tow, ep->tb*1000, 1);280 converttime(&cti, w, tow);281 273 282 274 _ephStream->flush();
Note:
See TracChangeset
for help on using the changeset viewer.