Changeset 1733 in ntrip
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r1726 r1733 396 396 } 397 397 398 // Clocks without corrections399 // --------------------------400 if ( _caster.at(ic)->beClocks() ) {401 xx(4) -= xx(5) / 299792458.0;402 xx(5) = 0.0;403 }404 405 398 if (ep != 0) { 406 399 struct ClockOrbit::SatData* sd = 0; … … 415 408 if (sd) { 416 409 QString outLine; 417 processSatellite(oldEph, ic, _caster.at(ic)->crdTrafo(), ep, 410 processSatellite(oldEph, ic, _caster.at(ic)->crdTrafo(), 411 _caster.at(ic)->beClocks(), ep, 418 412 GPSweek, GPSweeks, prn, xx, sd, outLine); 419 413 _caster.at(ic)->printAscii(outLine); … … 439 433 // 440 434 //////////////////////////////////////////////////////////////////////////// 441 void t_bns::processSatellite(int oldEph, int iCaster, bool trafo, t_eph* ep, 442 int GPSweek, double GPSweeks, const QString& prn, 435 void t_bns::processSatellite(int oldEph, int iCaster, bool trafo, 436 bool beClocks, t_eph* ep, int GPSweek, 437 double GPSweeks, const QString& prn, 443 438 const ColumnVector& xx, 444 439 struct ClockOrbit::SatData* sd, … … 455 450 } 456 451 457 ColumnVector dx = xyz - xB.Rows(1,3); 458 459 double dClk = (xx(4) - xB(4)) * 299792458.0; 452 ColumnVector dx = xyz - xB.Rows(1,3); 453 460 454 ColumnVector rsw(3); 461 462 455 XYZ_to_RSW(xB.Rows(1,3), vv, dx, rsw); 456 457 double dClk; 458 if (beClocks) { 459 dClk = (xx(4) - xB(4)) * 299792458.0 - xx(5); 460 } 461 else { 462 dClk = (xx(4) - xB(4)) * 299792458.0; 463 } 463 464 464 465 if (sd) { … … 526 527 rMat(3,3) = 1.0; 527 528 528 529 529 xyz = sc * rMat * xyz + dx; 530 530 } -
trunk/BNS/bns.h
r1258 r1733 60 60 void openCaster(); 61 61 void readEpoch(); 62 void processSatellite(int oldEph, int iCaster, bool trafo, t_eph* ep,63 int GPSweek, double GPSweeks, const QString& prn,64 const ColumnVector& xx, struct ClockOrbit::SatData* sd,65 QString& outLine);62 void processSatellite(int oldEph, int iCaster, bool trafo, bool beClocks, 63 t_eph* ep, int GPSweek, double GPSweeks, 64 const QString& prn, const ColumnVector& xx, 65 struct ClockOrbit::SatData* sd, QString& outLine); 66 66 void crdTrafo(int GPSWeek, ColumnVector& xyz); 67 67
Note:
See TracChangeset
for help on using the changeset viewer.