Changeset 3520 in ntrip
- Timestamp:
- Dec 14, 2011, 12:25:56 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/GPSS/hassDecoder.cpp
r3514 r3520 19 19 #include "hassDecoder.h" 20 20 #include "bnctime.h" 21 #include "bncutils.h" 21 22 22 23 using namespace std; … … 57 58 int mjd, IOD; 58 59 double daySec; 59 double deltaX, deltaY, deltaZ, deltaClk; 60 double rateDeltaX, rateDeltaY, rateDeltaZ; 60 ColumnVector dx(3); 61 ColumnVector dxRate(3); 62 double clkFull; 63 61 64 QString prn; 62 65 63 in >> mjd >> daySec >> prn >> IOD >> d eltaX >> deltaY >> deltaZ64 >> d eltaClk >> rateDeltaX >> rateDeltaY >> rateDeltaZ;66 in >> mjd >> daySec >> prn >> IOD >> dx[0] >> dx[1] >> dx[2] >> clkFull 67 >> dxRate[0] >> dxRate[1] >> dxRate[2]; 65 68 69 // Correction Time 70 // --------------- 66 71 bncTime tt; 67 72 tt.setmjd(daySec, mjd); … … 70 75 long coTime = tt.gpsw() * 7*24*3600 + long(floor(_GPSweeks+0.5)); 71 76 77 // Transform Correction 78 // -------------------- 79 dx = -dx; 80 dxRate = -dxRate; 81 82 t_eph* eph = 0; 83 if (_eph.contains(prn)) { 84 if (_eph.value(prn)->last && _eph.value(prn)->last->IOD() == IOD) { 85 eph = _eph.value(prn)->last; 86 } 87 else if (_eph.value(prn)->prev && _eph.value(prn)->prev->IOD() == IOD) { 88 eph = _eph.value(prn)->prev; 89 } 90 } 91 if (!eph) { 92 continue; 93 } 94 95 ColumnVector xc(4); 96 ColumnVector vv(3); 97 eph->position(tt.gpsw(), tt.gpssec(), xc.data(), vv.data()); 98 99 ColumnVector rao(3); 100 XYZ_to_RSW(xc.Rows(1,3), vv, dx, rao); 101 102 ColumnVector dotRao(3); 103 XYZ_to_RSW(xc.Rows(1,3), vv, dxRate, dotRao); 104 105 double dClk = clkFull - xc[3] * t_CST::c; 106 107 // Print Correction Line 108 // --------------------- 72 109 QString corrLine; 73 110 74 int updateInterval = 75 int messageType = 0;111 int updateInterval = 0; 112 int messageType = 0; 76 113 if (prn[0] == 'G') { 77 messageType = -COTYPE_GPSCOMBINED;114 messageType = COTYPE_GPSCOMBINED; 78 115 } 79 116 else if (prn[0] == 'R') { 80 messageType = -COTYPE_GLONASSCOMBINED;117 messageType = COTYPE_GLONASSCOMBINED; 81 118 } 82 119 … … 88 125 messageType, updateInterval, tt.gpsw(), _GPSweeks, 89 126 prn.toAscii().data(), IOD, 90 d eltaClk, deltaX, deltaY, deltaZ,91 0.0, rateDeltaX, rateDeltaY, rateDeltaZ, 0.0);127 dClk, rao[0], rao[1], rao[2], 128 0.0, dotRao[0], dotRao[1], dotRao[2], 0.0); 92 129 93 130 reopen(_fileNameSkl, _fileName, _out); -
trunk/BNC/RTCM3/RTCM3coDecoder.h
r3505 r3520 31 31 #include <QtNetwork> 32 32 33 #include "bncephuser.h" 33 34 #include "RTCM/GPSDecoder.h" 34 35 … … 37 38 } 38 39 39 class RTCM3coDecoder : public QObject, public GPSDecoder {40 class RTCM3coDecoder : public bncEphUser, public GPSDecoder { 40 41 Q_OBJECT 41 42 public:
Note:
See TracChangeset
for help on using the changeset viewer.