Changeset 527 in ntrip for trunk/BNC/bncapp.cpp
- Timestamp:
- Oct 18, 2007, 3:30:48 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r526 r527 270 270 271 271 if (_ephStream) { 272 int w = ep->GPSWeek, tow = ep->GPSTOW, i; 272 int ww = ep->GPSWeek; 273 int tow = ep->GPSTOW; 273 274 struct converttimeinfo cti; 274 275 275 updatetime(&w, &tow, ep->tb*1000, 1); 276 converttime(&cti, w, tow); 277 278 i = ep->tk-3*60*60; if(i < 0) i += 86400; 276 updatetime(&ww, &tow, ep->tb*1000, 1); 277 converttime(&cti, ww, tow); 278 279 int ii = ep->tk-3*60*60; 280 if (ii < 0) { 281 ii += 86400; 282 } 279 283 280 284 QString line; … … 283 287 line.sprintf("R%02d %04d %02d %02d %02d %02d %02d%19.12e%19.12e%19.12e", 284 288 ep->almanac_number, cti.year, cti.month, cti.day, cti.hour, 285 cti.minute, cti.second, -ep->tau, ep->gamma, (double) i );289 cti.minute, cti.second, -ep->tau, ep->gamma, (double) ii); 286 290 } 287 291 else { … … 289 293 ep->almanac_number, cti.year%100, cti.month, cti.day, 290 294 cti.hour, cti.minute, (double) cti.second, -ep->tau, 291 ep->gamma, (double) i );295 ep->gamma, (double) ii); 292 296 } 293 297 *_ephStream << line << endl;
Note:
See TracChangeset
for help on using the changeset viewer.