Changeset 525 in ntrip
- Timestamp:
- Oct 18, 2007, 3:21:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncapp.cpp ¶
r524 r525 197 197 } 198 198 199 const int RINEX_3 = 1; 200 199 201 // 200 202 //////////////////////////////////////////////////////////////////////////// 201 203 void bncApp::printGPSEph(gpsephemeris* ep) { 202 203 const int RINEX_3 = 1;204 204 205 205 if (_ephStream) { … … 270 270 271 271 if (_ephStream) { 272 272 int w = ep->GPSWeek, tow = ep->GPSTOW, i; 273 struct converttimeinfo cti; 274 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; 279 280 QString line; 281 282 if (RINEX_3) { 283 line.sprintf("R%02d %04d %02d %02d %02d %02d %02d%19.12e%19.12e%19.12e", 284 ep->almanac_number, cti.year, cti.month, cti.day, cti.hour, 285 cti.minute, cti.second, -ep->tau, ep->gamma, (double) i); 286 } 287 else { 288 line.sprintf("%02d %02d %02d %02d %02d %02d%5.1f%19.12e%19.12e%19.12e", 289 ep->almanac_number, cti.year%100, cti.month, cti.day, 290 cti.hour, cti.minute, (double) cti.second, -ep->tau, 291 ep->gamma, (double) i); 292 } 293 *_ephStream << line << endl; 294 295 line.sprintf(" %19.12e%19.12e%19.12e%19.12e", ep->x_pos, 296 ep->x_velocity, ep->x_acceleration, 297 (ep->flags & GLOEPHF_UNHEALTHY) ? 1.0 : 0.0); 298 *_ephStream << line << endl; 299 300 line.sprintf(" %19.12e%19.12e%19.12e%19.12e", ep->y_pos, 301 ep->y_velocity, ep->y_acceleration, 302 (double) ep->frequency_number); 303 *_ephStream << line << endl; 304 305 line.sprintf(" %19.12e%19.12e%19.12e%19.12e", ep->z_pos, 306 ep->z_velocity, ep->z_acceleration, (double) ep->E); 307 *_ephStream << line << endl; 273 308 274 309 _ephStream->flush();
Note:
See TracChangeset
for help on using the changeset viewer.