Changeset 923 in ntrip for trunk/BNS/bns.cpp


Ignore:
Timestamp:
May 18, 2008, 4:10:42 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r922 r923  
    365365          }
    366366          if (sd) {
    367             processSatellite(ep, GPSweek, GPSweeks, prn, xx, sd);
     367            processSatellite(oldEph, ep, GPSweek, GPSweeks, prn, xx, sd);
    368368          }
    369369        }
     
    385385//
    386386////////////////////////////////////////////////////////////////////////////
    387 void t_bns::processSatellite(t_eph* ep, int GPSweek, double GPSweeks,
     387void t_bns::processSatellite(int oldEph, t_eph* ep, int GPSweek, double GPSweeks,
    388388                             const QString& prn, const ColumnVector& xx,
    389389                             struct ClockOrbit::SatData* sd) {
     
    411411  if (_outStream) {
    412412    QString line;
    413     line.sprintf("%d %.1f %s   %3d   %8.3f   %8.3f %8.3f %8.3f\n",
    414                  GPSweek, GPSweeks, ep->prn().toAscii().data(),
     413    char oldCh = (oldEph ? '!' : ' ');
     414    line.sprintf("%c %d %.1f %s  %3d  %10.3f  %8.3f %8.3f %8.3f\n",
     415                 oldCh, GPSweek, GPSweeks, ep->prn().toAscii().data(),
    415416                 ep->IOD(), dClk, rsw(1), rsw(2), rsw(3));
    416417    *_outStream << line;
    417418    _outStream->flush();
    418419  }
    419   if (_rnx) {
    420     _rnx->write(GPSweek, GPSweeks, prn, xx);
    421   }
    422   if (_sp3) {
    423     _sp3->write(GPSweek, GPSweeks, prn, xx);
     420  if (!oldEph) {
     421    if (_rnx) {
     422      _rnx->write(GPSweek, GPSweeks, prn, xx);
     423    }
     424    if (_sp3) {
     425      _sp3->write(GPSweek, GPSweeks, prn, xx);
     426    }
    424427  }
    425428}
Note: See TracChangeset for help on using the changeset viewer.