Changeset 894 in ntrip for trunk/BNC/bncapp.cpp
- Timestamp:
- May 8, 2008, 7:26:31 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r885 r894 393 393 converttime(&cti, ep->GPSweek, ep->TOC); 394 394 if (_rinexVers == 3) { 395 line.sprintf("G%02d %04d %02d %02d %02d %02d %02d %19.12e%19.12e%19.12e\n",395 line.sprintf("G%02d %04d %02d %02d %02d %02d %02d %18.11e %18.11e %18.11e\n", 396 396 ep->satellite, cti.year, cti.month, cti.day, cti.hour, 397 397 cti.minute, cti.second, ep->clock_bias, ep->clock_drift, … … 399 399 } 400 400 else if (_rinexVers == 2) { 401 line.sprintf("%02d %02d %02d %02d %02d %02d%5.1f %19.12e%19.12e%19.12e\n",401 line.sprintf("%02d %02d %02d %02d %02d %02d%5.1f %18.11e %18.11e %18.11e\n", 402 402 ep->satellite, cti.year%100, cti.month, cti.day, cti.hour, 403 403 cti.minute, (double) cti.second, ep->clock_bias, … … 406 406 allLines += line; 407 407 408 line.sprintf(" %19.12e%19.12e%19.12e%19.12e\n", (double)ep->IODE,408 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", (double)ep->IODE, 409 409 ep->Crs, ep->Delta_n, ep->M0); 410 410 allLines += line; 411 411 412 line.sprintf(" %19.12e%19.12e%19.12e%19.12e\n", ep->Cuc,412 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->Cuc, 413 413 ep->e, ep->Cus, ep->sqrt_A); 414 414 allLines += line; 415 415 416 line.sprintf(" %19.12e%19.12e%19.12e%19.12e\n",416 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", 417 417 (double) ep->TOE, ep->Cic, ep->OMEGA0, ep->Cis); 418 418 allLines += line; 419 419 420 line.sprintf(" %19.12e%19.12e%19.12e%19.12e\n", ep->i0,420 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->i0, 421 421 ep->Crc, ep->omega, ep->OMEGADOT); 422 422 allLines += line; … … 428 428 if(ii & GPSEPHF_L2PCODE) 429 429 dd += 1.0; 430 line.sprintf(" %19.12e%19.12e%19.12e%19.12e\n", ep->IDOT, dd,430 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->IDOT, dd, 431 431 (double) ep->GPSweek, ii & GPSEPHF_L2PCODEDATA ? 1.0 : 0.0); 432 432 allLines += line; … … 436 436 else 437 437 dd = ceil(10.0*pow(2.0, ((double)ep->URAindex)/2.0))/10.0; 438 line.sprintf(" %19.12e%19.12e%19.12e%19.12e\n", dd,438 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", dd, 439 439 ((double) ep->SVhealth), ep->TGD, ((double) ep->IODC)); 440 440 allLines += line; 441 441 442 line.sprintf(" %19.12e%19.12e\n", ((double)ep->TOW), 0.0);442 line.sprintf(" %18.11e %18.11e\n", ((double)ep->TOW), 0.0); 443 443 allLines += line; 444 444 … … 491 491 492 492 if (_rinexVers == 3) { 493 line.sprintf("R%02d %04d %02d %02d %02d %02d %02d %19.12e%19.12e%19.12e\n",493 line.sprintf("R%02d %04d %02d %02d %02d %02d %02d %18.11e %18.11e %18.11e\n", 494 494 ep->almanac_number, cti.year, cti.month, cti.day, cti.hour, 495 495 cti.minute, cti.second, -ep->tau, ep->gamma, (double) tk); 496 496 } 497 497 else if (_rinexVers == 2) { 498 line.sprintf("%02d %02d %02d %02d %02d %02d%5.1f %19.12e%19.12e%19.12e\n",498 line.sprintf("%02d %02d %02d %02d %02d %02d%5.1f %18.11e %18.11e %18.11e\n", 499 499 ep->almanac_number, cti.year%100, cti.month, cti.day, 500 500 cti.hour, cti.minute, (double) cti.second, -ep->tau, … … 503 503 allLines += line; 504 504 505 line.sprintf(" %19.12e%19.12e%19.12e%19.12e\n", ep->x_pos,505 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->x_pos, 506 506 ep->x_velocity, ep->x_acceleration, 507 507 (ep->flags & GLOEPHF_UNHEALTHY) ? 1.0 : 0.0); 508 508 allLines += line; 509 509 510 line.sprintf(" %19.12e%19.12e%19.12e%19.12e\n", ep->y_pos,510 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->y_pos, 511 511 ep->y_velocity, ep->y_acceleration, 512 512 (double) ep->frequency_number); 513 513 allLines += line; 514 514 515 line.sprintf(" %19.12e%19.12e%19.12e%19.12e\n", ep->z_pos,515 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->z_pos, 516 516 ep->z_velocity, ep->z_acceleration, (double) ep->E); 517 517 allLines += line;
Note:
See TracChangeset
for help on using the changeset viewer.