Changeset 5120 in ntrip for trunk/BNC/src/GPSS


Ignore:
Timestamp:
Apr 14, 2013, 6:26:22 PM (11 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/GPSS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/GPSS/hassDecoder.cpp

    r5070 r5120  
    4646  _GPSweeks = -1.0;
    4747
    48   connect(this, SIGNAL(newCorrLine(QString, QString, long)),
    49           BNC_CORE, SLOT(slotNewCorrLine(QString, QString, long)));
     48  connect(this, SIGNAL(newCorrLine(QString, QString, bncTime)),
     49          BNC_CORE, SLOT(slotNewCorrLine(QString, QString, bncTime)));
    5050}
    5151
     
    9292    // Correction Time
    9393    // ---------------
    94     bncTime tt;
    95     tt.setmjd(daySec, mjd);
     94    bncTime coTime; coTime.setmjd(daySec, mjd);
    9695
    97     _GPSweeks = tt.gpssec();
    98     long coTime = tt.gpsw() * 7*24*3600 + long(floor(_GPSweeks+0.5));
     96    _GPSweeks = coTime.gpssec();
    9997
    10098    // Transform Correction
     
    118116    ColumnVector xc(4);
    119117    ColumnVector vv(3);
    120     eph->position(tt.gpsw(), tt.gpssec(), xc.data(), vv.data());
     118    eph->position(coTime.gpsw(), coTime.gpssec(), xc.data(), vv.data());
    121119
    122120    ColumnVector rao(3);
     
    146144                     "   %10.5f %10.5f %10.5f %10.5f"
    147145                     "   %10.5f",
    148                      messageType, updateInterval, tt.gpsw(), _GPSweeks,
     146                     messageType, updateInterval, coTime.gpsw(), _GPSweeks,
    149147                     prn.toAscii().data(), IOD,
    150148                     dClk, rao[0], rao[1], rao[2],
  • trunk/BNC/src/GPSS/hassDecoder.h

    r3578 r5120  
    1616
    1717 signals:
    18   void newCorrLine(QString line, QString staID, long coTime);
     18  void newCorrLine(QString line, QString staID, bncTime coTime);
    1919
    2020 private:
Note: See TracChangeset for help on using the changeset viewer.