Index: trunk/BNC/CHANGELOG.md
===================================================================
--- trunk/BNC/CHANGELOG.md	(revision 11194)
+++ trunk/BNC/CHANGELOG.md	(revision 11195)
@@ -1,4 +1,13 @@
 # Changelog
 ## 2.13.8 (2026-11-04)
+- FIXED: New RTCM-SSR upload with VTEC: the message number of the VTEC message was not initialised (the new RTCM-SSR has no VTEC message); no VTEC is encoded in this format now
+- FIXED: New RTCM-SSR Extended Phase Bias: the wide-lane indicators are only taken over if SSR IOD, provider ID and solution ID match the preceding Phase Bias message too (before only epoch and property ID)
+- CHANGED: Unused variables, class members (e.g. class SdAmb in the ambiguity resolution) and a macro removed
+- FIXED: **PPP ionosphere from VTEC**: the slant TEC of a layer was computed as VTEC * sin(E + psi_PP) instead of VTEC / sin(E + psi_PP) (IGS SSR v1.00 4.5.1, RTCM 10403.3), i.e. far too small except at zenith (factor ~6.5 at 10 deg elevation); affects the ionospheric code delay and the STEC pseudo-observations. Quick-Start PPP with SSRA00CNE1 (11 min): height RMS 0.64 m -> 0.08 m
+- FIXED: IGS-SSR Galileo IOD: an SSR correction carries the 8 LSBs of IODnav (IDF012); the ephemeris is now matched on the 8 LSBs (PPP, combination, SSR QC), before an IODnav >= 256 could never be matched
+- FIXED: IGS-SSR SBAS satellite ID: ID 1 is PRN 120 (S20) (IDF011), decoded and encoded (upload) with this offset now, before ID n was taken as S<n>; GPS/GLONASS/BDS ID 0 is decoded as 64
+- FIXED: SSR High Rate Clock messages: the clock polynomial keeps the reference time of its clock message; it is now re-referenced to the High Rate Clock epoch (C1 and C2 terms) before the high rate correction is added, before the polynomial was moved to the new epoch without propagation
+- CHANGED: IGS-SSR upload: IGS SSR Version (IDF001) 1 instead of 3 (IGS SSR v1.00); any version is decoded
+- CHANGED: SSR orbit corrections of geostationary satellites (BDS/QZSS/NavIC GEO with inclination < 10 deg, SBAS): along-track and cross-track refer to the velocity in the non-rotating frame parallel to ITRF at the SSR epoch, v + Omega_e x r (IGS SSR v1.00 4.2), before the ECEF velocity (nearly zero for a GEO); applied consistently in PPP, upload, combination and SSR QC, all SSR formats (not yet validated: no stream with GEO corrections available)
 - ADDED: **RINEX observation files: event records are kept** (RINEX Edit/Concatenate): epoch flag 1 (power failure) is written again, flags 2-5 with their special records (header records valid in the output version, without changes of the observation types fixed by the output header), flag 6 cycle slip records; events of epochs left out by the sampling are written with the next epoch, events after the last epoch at the end. Before, flag 5 records were skipped, flag 2 was written as an empty epoch and flag 6 stopped the editing ('unhandled flag')
 - ADDED: **RINEX observation header records kept**: records not interpreted by BNC (e.g. SIGNAL STRENGTH UNIT, LEAP SECONDS, SYS / DCBS APPLIED, SYS / PCVS APPLIED, ANTENNA: PHASECENTER/ZERODIR/DELTA X/Y/Z/B.SIGHT XYZ, CENTER OF MASS: XYZ, DOI, LICENSE OF USE, STATION INFORMATION) are written again if they exist in the output version; SYS / SCALE FACTOR is applied when reading and writing (RINEX 2 output: unscaled); the satellite system of RINEX VERSION / TYPE is kept for single-system files (before always M)
Index: trunk/BNC/src/PPP/ambres.cpp
===================================================================
--- trunk/BNC/src/PPP/ambres.cpp	(revision 11194)
+++ trunk/BNC/src/PPP/ambres.cpp	(revision 11195)
@@ -110,5 +110,4 @@
   // Resolvable ambiguities
   // ----------------------
-  map<char, set<t_prn>> usedPrns;
   for (char system : OPT->_ar._systems) {
     for (const auto& par : params) {
Index: trunk/BNC/src/PPP/ambres.h
===================================================================
--- trunk/BNC/src/PPP/ambres.h	(revision 11194)
+++ trunk/BNC/src/PPP/ambres.h	(revision 11195)
@@ -41,19 +41,4 @@
     };
   
-    class SdAmb {
-    public:
-      SdAmb(const ZdAmb& zdAmb1, const ZdAmb& zdAmb2,
-            const ColumnVector& xBie, const SymmetricMatrix& covBie);
-      t_lc              _LC;
-      t_prn             _prn1;
-      t_prn             _prn2;
-      double            _aprVal;
-      double            _bieValue;
-      double            _bieSigma;
-      bool              _fixed;
-      bncTime           _firstObsTime;
-      const t_pppParam* _ambGlobal[2];
-    };
-  
     class AmbGroup {
     public:
@@ -63,5 +48,4 @@
       const ZdAmb*       _zdAmbRef;
       std::vector<ZdAmb> _zdAmbs;
-      std::vector<SdAmb> _sdAmbs;
     };
 
Index: trunk/BNC/src/PPP/pppFilter.cpp
===================================================================
--- trunk/BNC/src/PPP/pppFilter.cpp	(revision 11194)
+++ trunk/BNC/src/PPP/pppFilter.cpp	(revision 11195)
@@ -381,13 +381,4 @@
                                     const vector<t_pppSatObs*> &obsVector) {
 
-  double SLIP = 150.0;
-  double fac = 1.0;
-  if (_lastEpoTimeOK.valid()) {
-    fac = _epoTime - _lastEpoTimeOK;
-    if (fac > 60.0 || fac < 1.0) {
-      fac = 1.0;
-    }
-  }
-  SLIP *= fac;
   string epoTimeStr = string(_epoTime);
 
Index: trunk/BNC/src/PPP/pppStation.h
===================================================================
--- trunk/BNC/src/PPP/pppStation.h	(revision 11194)
+++ trunk/BNC/src/PPP/pppStation.h	(revision 11195)
@@ -49,6 +49,4 @@
   double            _dClk;
   mutable t_windUp* _windUp;
-  bncTime           _timeCheck;
-  ColumnVector      _xyzCheck;
   t_iono*            _iono;
   bncTime           _epochTime;
Index: trunk/BNC/src/RTCM/RTCM2.cpp
===================================================================
--- trunk/BNC/src/RTCM/RTCM2.cpp	(revision 11194)
+++ trunk/BNC/src/RTCM/RTCM2.cpp	(revision 11195)
@@ -965,13 +965,4 @@
 };
 
-bool RTCM2_Obs::anyGLONASS() const {
-
-  return  availability.test(bit_L1rngGLO) ||
-          availability.test(bit_L2rngGLO) ||
-          availability.test(bit_L1cphGLO) ||
-          availability.test(bit_L2cphGLO);
-
-};
-
 bool RTCM2_Obs::allGPS() const {
 
@@ -1109,7 +1100,4 @@
 
     for (int iSat=0;iSat<NSat;iSat++){
-
-      // Code type
-      isCAcode = ( P.getUnsignedBits(iSat*48+25,1)==0 );
 
       // Satellite
Index: trunk/BNC/src/RTCM/RTCM2.h
===================================================================
--- trunk/BNC/src/RTCM/RTCM2.h	(revision 11194)
+++ trunk/BNC/src/RTCM/RTCM2.h	(revision 11195)
@@ -323,5 +323,4 @@
 
     bool anyGPS() const;
-    bool anyGLONASS() const;
     bool allGPS() const;
     bool allGLONASS() const;
Index: trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
===================================================================
--- trunk/BNC/src/RTCM3/RTCM3Decoder.cpp	(revision 11194)
+++ trunk/BNC/src/RTCM3/RTCM3Decoder.cpp	(revision 11195)
@@ -58,9 +58,4 @@
 
 using namespace std;
-
-// Error Handling
-////////////////////////////////////////////////////////////////////////////
-void RTCM3Error(const char*, ...) {
-}
 
 // Constructor
Index: trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm_new.cpp
===================================================================
--- trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm_new.cpp	(revision 11194)
+++ trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm_new.cpp	(revision 11195)
@@ -427,35 +427,8 @@
 }
 
-size_t SsrCorrRtcmNew::MakeVTEC(const struct VTEC* v, int moremessagesfollow, char* buffer, size_t size) {
-  unsigned int l, o, d;
-
-  STARTDATA
-    INITBLOCK
-      E_RTCM_MESSAGE_NUMBER(VTEC_BASE)
-      E_GPS_EPOCH_TIME(v->EpochTime)
-      E_SSR_UPDATE_INTERVAL(v->UpdateInterval)
-      E_MULTIPLE_MESSAGE_INDICATOR(moremessagesfollow ? 1 : 0)
-      E_SSR_IOD(v->SSRIOD)
-      E_SSR_PROVIDER_ID(v->SSRProviderID)
-      E_SSR_SOLUTION_ID(v->SSRSolutionID)
-      E_VTEC_QUALITY_INDICATOR(v->Quality)
-      E_NO_IONO_LAYERS(v->NumLayers)
-      for (l = 0; l < v->NumLayers; ++l) {
-        E_IONO_HEIGHT(v->Layers[l].Height)
-        E_IONO_DEGREE(v->Layers[l].Degree)
-        E_IONO_ORDER(v->Layers[l].Order)
-        for (o = 0; o <= v->Layers[l].Order; ++o) {
-          for (d = o; d <= v->Layers[l].Degree; ++d) {
-            E_IONO_COEFF_C(v->Layers[l].Cosinus[d][o])
-          }
-        }
-      for (o = 1; o <= v->Layers[l].Order; ++o) {
-        for (d = o; d <= v->Layers[l].Degree; ++d) {
-          E_IONO_COEFF_S(v->Layers[l].Sinus[d][o])
-        }
-      }
-    }
-  ENDBLOCK
-    return ressize;
+// The new RTCM-SSR has no VTEC message: nothing is encoded
+size_t SsrCorrRtcmNew::MakeVTEC(const struct VTEC* /* v */, int /* moremessagesfollow */,
+                                char* /* buffer */, size_t /* size */) {
+  return 0;
 }
 
@@ -592,5 +565,5 @@
 }
 
-enum GCOB_RETURN SsrCorrRtcmNew::GetSSR(struct ClockOrbit* co, struct CodeBias* cb, struct VTEC* v,
+enum GCOB_RETURN SsrCorrRtcmNew::GetSSR(struct ClockOrbit* co, struct CodeBias* cb, struct VTEC* /* v: no VTEC in the new RTCM-SSR */,
   struct PhaseBias* pb, struct MetaData* md, struct Antenna* a, const char* buffer, size_t size, int* bytesused) {
   int mmi = 0, h, rs;
@@ -837,5 +810,10 @@
         ExtendedPhaseBiasPropertyID, pb->ExtendedPhaseBiasPropertyID);
 #endif
+      /* the wide-lane indicators belong to the preceding Phase Bias message
+       * only if epoch, SSR IOD, provider, solution and property ID match */
       if (EpochTime == pb->EpochTime[s] &&
+        SSRIOD == pb->SSRIOD &&
+        SSRProviderID == pb->SSRProviderID &&
+        SSRSolutionID == pb->SSRSolutionID &&
         ExtendedPhaseBiasPropertyID == pb->ExtendedPhaseBiasPropertyID) {
         for (i = 0; i < pb->NumberOfSat[s]; ++i) {
Index: trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm_new.h
===================================================================
--- trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm_new.h	(revision 11194)
+++ trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm_new.h	(revision 11195)
@@ -92,5 +92,7 @@
   };
 
-  void setVtecType() {};
+  void setVtecType() {
+    VTEC_BASE = 0;   /* the new RTCM-SSR has no VTEC message */
+  };
 
   void setSatAntType() {
@@ -221,7 +223,8 @@
      GPS, GLONASS, GALILEO, QZSS and BDS are supported; SBAS has no new-RTCM-SSR
      messages defined, so its row is left all-zero (0 = undefined). GRID, Tropo,
-     Metadata and VTEC are single global message numbers, not per-system, so
-     they are handled directly against their BASE constant instead of via this
-     table (VTEC already is, at the top of GetSSR). */
+     Metadata are single global message numbers, not per-system, so they are
+     handled directly against their BASE constant instead of via this table.
+     The new RTCM-SSR has no VTEC message (VTEC_BASE = 0, MakeVTEC() encodes
+     nothing, GetSSR() decodes none). */
   void setCorType() {
     COBOFS_ORBIT    = 0;
Index: trunk/BNC/src/bncgetthread.h
===================================================================
--- trunk/BNC/src/bncgetthread.h	(revision 11194)
+++ trunk/BNC/src/bncgetthread.h	(revision 11195)
@@ -127,5 +127,4 @@
    int                        _NMEASampl;
    int                        _nextSleep;
-   int                        _iMount;
    int                        _ssrEpoch;
    bncRawFile*                _rawFile;
Index: trunk/BNC/src/bncnetqueryudp.cpp
===================================================================
--- trunk/BNC/src/bncnetqueryudp.cpp	(revision 11194)
+++ trunk/BNC/src/bncnetqueryudp.cpp	(revision 11195)
@@ -26,6 +26,4 @@
 
 using namespace std;
-
-#define TIME_RESOLUTION 125
 
 // Constructor
Index: trunk/BNC/src/bncrinex.h
===================================================================
--- trunk/BNC/src/bncrinex.h	(revision 11194)
+++ trunk/BNC/src/bncrinex.h	(revision 11195)
@@ -84,7 +84,4 @@
    QStringList     _addComments;
 
-   QMap<QString, int>  _slip_cnt_L1;
-   QMap<QString, int>  _slip_cnt_L2;
-   QMap<QString, int>  _slip_cnt_L5;
 
    t_rnxObsHeader _sklHeader;
Index: trunk/BNC/src/bncserialport.h
===================================================================
--- trunk/BNC/src/bncserialport.h	(revision 11194)
+++ trunk/BNC/src/bncserialport.h	(revision 11195)
@@ -38,5 +38,4 @@
     bncSerialPort(QWidget* parent);
     ~bncSerialPort();
-    QString*   _serialPort1;
 
   signals:
Index: trunk/BNC/src/bncutils.cpp
===================================================================
--- trunk/BNC/src/bncutils.cpp	(revision 11194)
+++ trunk/BNC/src/bncutils.cpp	(revision 11195)
@@ -120,18 +120,17 @@
   int y,m,d,k,l, nul;
   unsigned int j = *week*(7*24*60*60) + *secOfWeek + 5*24*60*60+3*60*60;
-  int glo_daynumber = 0, glo_timeofday;
+  int glo_timeofday;
   for(y = 1980; j >= (unsigned int)(k = (l = (365+longyear(y,0)))*24*60*60)
   + gnumleap(y+1,1,1); ++y)
   {
-    j -= k; glo_daynumber += l;
+    j -= k;
   }
   for(m = 1; j >= (unsigned int)(k = (l = months[m]+longyear(y, m))*24*60*60)
   + gnumleap(y, m+1, 1); ++m)
   {
-    j -= k; glo_daynumber += l;
+    j -= k;
   }
   for(d = 1; j >= 24UL*60UL*60UL + gnumleap(y, m, d+1); ++d)
     j -= 24*60*60;
-  glo_daynumber -= 16*365+4-d;
   nul = gnumleap(y, m, d);
   glo_timeofday = j-nul;
Index: trunk/BNC/src/bncwindow.h
===================================================================
--- trunk/BNC/src/bncwindow.h	(revision 11194)
+++ trunk/BNC/src/bncwindow.h	(revision 11195)
@@ -134,5 +134,4 @@
     QAction* _actDeleteMountPoints;
     QAction* _actwhatsthis;
-    QAction* _actwhatsthismenu;
 
     QLineEdit* _proxyHostLineEdit;
@@ -219,6 +218,4 @@
     QSpinBox* _serialNMEASamplingSpinBox;
 
-    QLineEdit* _LatLineEdit;
-    QLineEdit* _LonLineEdit;
 
     QComboBox* _onTheFlyComboBox;
Index: trunk/BNC/src/combination/bnccomb.cpp
===================================================================
--- trunk/BNC/src/combination/bnccomb.cpp	(revision 11194)
+++ trunk/BNC/src/combination/bnccomb.cpp	(revision 11195)
@@ -773,8 +773,9 @@
 
   ColumnVector dRAO(3);
-  XYZ_to_RSW(newXC.Rows(1,3), newVV, dX, dRAO);
+  ColumnVector vFrame = lastEph->ssrFrameVel(newXC, newVV); // GEO: inertial velocity
+  XYZ_to_RSW(newXC.Rows(1,3), vFrame, dX, dRAO);
 
   ColumnVector dDotRAO(3);
-  XYZ_to_RSW(newXC.Rows(1,3), newVV, dV, dDotRAO);
+  XYZ_to_RSW(newXC.Rows(1,3), vFrame, dV, dDotRAO);
 
   QString msg = "bncComb: switch corr " + corr->_prn.mid(0,3)
@@ -1482,5 +1483,5 @@
   // X = X_brdc - RSW(xr): X_CoM = X_APC - dx  =>  xr_CoM = xr_APC + RSW(dx)
   ColumnVector dRAO(3);
-  XYZ_to_RSW(xc.Rows(1,3), vv, dx, dRAO);
+  XYZ_to_RSW(xc.Rows(1,3), corr->_eph->ssrFrameVel(xc, vv), dx, dRAO);
   corr->_orbCorr._xr += dRAO;
   return success;
@@ -1743,5 +1744,5 @@
     if (!masterIsAPC && _antex) {
       ColumnVector dRAO(3);
-      XYZ_to_RSW(xc.Rows(1,3), vv, dx, dRAO);
+      XYZ_to_RSW(xc.Rows(1,3), corr->_eph->ssrFrameVel(xc, vv), dx, dRAO);
       orbCorrections.back()._xr -= dRAO;
     }
Index: trunk/BNC/src/combination/bnccomb.h
===================================================================
--- trunk/BNC/src/combination/bnccomb.h	(revision 11194)
+++ trunk/BNC/src/combination/bnccomb.h	(revision 11195)
@@ -306,5 +306,4 @@
   QMap<char, unsigned>                       _cmbSysPrn;
   bncEphUser                                 _ephUser;
-  QString                                    _cmbRefAttributes;
   bool                                       _useGps;
   bool                                       _useGlo;
Index: trunk/BNC/src/ephemeris.cpp
===================================================================
--- trunk/BNC/src/ephemeris.cpp	(revision 11194)
+++ trunk/BNC/src/ephemeris.cpp	(revision 11195)
@@ -116,4 +116,8 @@
         dtO -= (0.5 * ssrUpdateInt[_orbCorr->_updateInt]);
       }
+      // along/cross directions from the broadcast orbit (GEO: inertial velocity)
+      ColumnVector vFrame = ssrFrameVel(xc, vv);
+      ColumnVector xBrdc  = xc.Rows(1, 3);
+
       ColumnVector dx(3);
       dx[0] = _orbCorr->_xr[0] + _orbCorr->_dotXr[0] * dtO;
@@ -121,5 +125,5 @@
       dx[2] = _orbCorr->_xr[2] + _orbCorr->_dotXr[2] * dtO;
 
-      RSW_to_XYZ(xc.Rows(1, 3), vv.Rows(1, 3), dx, dx);
+      RSW_to_XYZ(xBrdc, vFrame, dx, dx);
 
       xc[0] -= dx[0];
@@ -128,5 +132,5 @@
 
       ColumnVector dv(3);
-      RSW_to_XYZ(xc.Rows(1, 3), vv.Rows(1, 3), _orbCorr->_dotXr, dv);
+      RSW_to_XYZ(xBrdc, vFrame, _orbCorr->_dotXr, dv);
 
       vv[0] -= dv[0];
Index: trunk/BNC/src/ephemeris.h
===================================================================
--- trunk/BNC/src/ephemeris.h	(revision 11194)
+++ trunk/BNC/src/ephemeris.h	(revision 11195)
@@ -2,4 +2,5 @@
 #define EPHEMERIS_H
 
+#include <cmath>
 #include <newmat.h>
 #include <QtCore>
@@ -36,4 +37,19 @@
   bool    matchesSsrIOD(unsigned int iod) const {
     return (system() == Galileo) ? ((IOD() & 0xFF) == (iod & 0xFF)) : (IOD() == iod);
+  }
+  // Geostationary satellite (BDS/QZSS/NavIC GEO: inclination below 10 deg,
+  // SBAS: always)
+  virtual bool isGeo() const {return false;}
+  // Velocity defining the along/cross directions of an SSR orbit correction
+  // (IGS SSR v1.00 4.2): the ECEF velocity, for GEOs (ECEF velocity nearly
+  // zero) the velocity in the non-rotating frame parallel to ITRF at the
+  // SSR epoch, vv + Omega_e x r. xc: position [m], vv: ECEF velocity [m/s]
+  ColumnVector ssrFrameVel(const ColumnVector& xc, const ColumnVector& vv) const {
+    ColumnVector vel = vv.Rows(1, 3);
+    if (isGeo()) {
+      vel(1) -= t_CST::omega * xc(2);
+      vel(2) += t_CST::omega * xc(1);
+    }
+    return vel;
   }
   bool    sameDataSet(const t_eph* eph) const {return _TOC == eph->_TOC && IOD() == eph->IOD();}
@@ -163,4 +179,7 @@
   virtual unsigned int isUnhealthy() const;
   double TGD() const {return _TGD;} // Timing Group Delay (P1-P2 DCB)
+  virtual bool isGeo() const {
+    return (system() == t_eph::QZSS || system() == t_eph::NavIC) && _i0 < 10.0 / 180.0 * M_PI;
+  }
 
  private:
@@ -515,4 +534,5 @@
 
   virtual e_system  system() const {return t_eph::SBAS;}
+  virtual bool isGeo() const {return true;}
   virtual unsigned int IOD() const;
   virtual unsigned int  isUnhealthy() const;
@@ -601,4 +621,5 @@
 
   virtual e_system  system() const {return t_eph::BDS;}
+  virtual bool isGeo() const {return _i0 <= 10.0 / 180.0 * M_PI;}
   virtual unsigned int IOD() const;
   virtual unsigned int isUnhealthy() const;
Index: trunk/BNC/src/latencychecker.h
===================================================================
--- trunk/BNC/src/latencychecker.h	(revision 11194)
+++ trunk/BNC/src/latencychecker.h	(revision 11195)
@@ -150,5 +150,4 @@
   QDateTime  _checkTime;
   QDateTime  _decodeSucc;
-  QDateTime  _decodeFailure;
   QDateTime  _decodeStart;
   QDateTime  _decodeStop;
Index: trunk/BNC/src/map/bncmapwin.h
===================================================================
--- trunk/BNC/src/map/bncmapwin.h	(revision 11194)
+++ trunk/BNC/src/map/bncmapwin.h	(revision 11195)
@@ -57,5 +57,4 @@
   void gotoLocation(double lat, double lon);
   QWebEngineView*  _webView;
-  QWebEnginePage*  _webPage;
   QLabel*          _statusLabel;
   double           _currLat;
Index: trunk/BNC/src/ssrQc.cpp
===================================================================
--- trunk/BNC/src/ssrQc.cpp	(revision 11194)
+++ trunk/BNC/src/ssrQc.cpp	(revision 11195)
@@ -906,4 +906,5 @@
       sc.xx  = xc.Rows(1,3);
       sc.vv  = vv;
+      sc.vFrame = eph->ssrFrameVel(xc, vv);
       sc.clk = xc(4) * t_CST::c;
       sc.refPoint = refPoint(staID);
@@ -1037,5 +1038,5 @@
           for (int ii = 0; ii < 3; ii++) dx[ii] = sc.xx[ii] - median(xs[ii]);
           ColumnVector er = sc.xx / sc.xx.NormFrobenius();
-          ColumnVector ec = crossproduct(sc.xx, sc.vv);
+          ColumnVector ec = crossproduct(sc.xx, sc.vFrame);
           ec /= ec.NormFrobenius();
           ColumnVector ea = crossproduct(ec, er);
Index: trunk/BNC/src/ssrQc.h
===================================================================
--- trunk/BNC/src/ssrQc.h	(revision 11194)
+++ trunk/BNC/src/ssrQc.h	(revision 11195)
@@ -115,4 +115,5 @@
     ColumnVector xx;   // [m]
     ColumnVector vv;   // [m/s]
+    ColumnVector vFrame; // [m/s] velocity of the RAC frame (GEO: inertial)
     double       clk;  // [m], referred to the reference signals (+ B_IF) if clkOK
     bool         clkOK;
Index: trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
===================================================================
--- trunk/BNC/src/upload/bncrtnetuploadcaster.cpp	(revision 11194)
+++ trunk/BNC/src/upload/bncrtnetuploadcaster.cpp	(revision 11195)
@@ -1145,9 +1145,11 @@
     // Difference in RSW
     // -----------------
+    // (GEO: along/cross from the inertial velocity, IGS SSR v1.00 4.2)
+    ColumnVector vFrame = eph->ssrFrameVel(xB, vB);
     ColumnVector rsw(3);
-    XYZ_to_RSW(xB.Rows(1, 3), vB, dx, rsw);
+    XYZ_to_RSW(xB.Rows(1, 3), vFrame, dx, rsw);
 
     ColumnVector dotRsw(3);
-    XYZ_to_RSW(xB.Rows(1, 3), vB, dv, dotRsw);
+    XYZ_to_RSW(xB.Rows(1, 3), vFrame, dv, dotRsw);
 
     // Clock Correction
Index: trunk/BNC/src/upload/bncuploadcaster.h
===================================================================
--- trunk/BNC/src/upload/bncuploadcaster.h	(revision 11194)
+++ trunk/BNC/src/upload/bncuploadcaster.h	(revision 11195)
@@ -53,6 +53,4 @@
   bool        _isToBeDeleted;
   QString     _mountpoint;
-  QString     _outHost;
-  int         _outPort;
   QString     _casterOutHost;
   int         _casterOutPort;
