Changeset 6215 in ntrip for trunk/BNC/src/RTCM3
- Timestamp:
- Oct 9, 2014, 9:38:06 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp ¶
r6177 r6215 35 35 * Created: 05-May-2008 36 36 * 37 * Changes: 37 * Changes: 38 38 * 39 39 * -----------------------------------------------------------------------*/ … … 72 72 73 73 qRegisterMetaType<bncTime>("bncTime"); 74 qRegisterMetaType< QList<t_orbCorr> >("QList :t_orbCorr");75 qRegisterMetaType< QList<t_clkCorr> >("QList :t_clkCorr");76 77 connect(this, SIGNAL(newOrbCorrections(QList<t_orbCorr>)), 74 qRegisterMetaType< QList<t_orbCorr> >("QList<t_orbCorr>"); 75 qRegisterMetaType< QList<t_clkCorr> >("QList<t_clkCorr>"); 76 77 connect(this, SIGNAL(newOrbCorrections(QList<t_orbCorr>)), 78 78 BNC_CORE, SLOT(slotNewOrbCorrections(QList<t_orbCorr>))); 79 79 80 connect(this, SIGNAL(newClkCorrections(QList<t_clkCorr>)), 80 connect(this, SIGNAL(newClkCorrections(QList<t_clkCorr>)), 81 81 BNC_CORE, SLOT(slotNewClkCorrections(QList<t_clkCorr>))); 82 82 83 connect(this, SIGNAL(providerIDChanged(QString)), 83 connect(this, SIGNAL(providerIDChanged(QString)), 84 84 BNC_CORE, SIGNAL(providerIDChanged(QString))); 85 85 86 connect(this, SIGNAL(newMessage(QByteArray,bool)), 86 connect(this, SIGNAL(newMessage(QByteArray,bool)), 87 87 BNC_CORE, SLOT(slotMessage(const QByteArray,bool))); 88 88 … … 102 102 103 103 // Reopen Output File 104 //////////////////////////////////////////////////////////////////////// 104 //////////////////////////////////////////////////////////////////////// 105 105 void RTCM3coDecoder::reopen() { 106 106 … … 114 114 settings.value("corrIntr").toString()); 115 115 116 QString fileNameHlp = _fileNameSkl 116 QString fileNameHlp = _fileNameSkl 117 117 + QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) 118 118 + hlpStr + datTim.toString(".yyC"); … … 135 135 } 136 136 137 // 137 // 138 138 //////////////////////////////////////////////////////////////////////////// 139 139 t_irc RTCM3coDecoder::Decode(char* buffer, int bufLen, vector<string>& errmsg) { … … 168 168 _buffer = _buffer.mid(bytesused); 169 169 170 if ( (irc == GCOBR_OK || irc == GCOBR_MESSAGEFOLLOWS ) && 170 if ( (irc == GCOBR_OK || irc == GCOBR_MESSAGEFOLLOWS ) && 171 171 (_co.NumberOfSat[CLOCKORBIT_SATGPS] > 0 || _co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0 || 172 172 _bias.NumberOfSat[CLOCKORBIT_SATGPS] > 0 || _bias.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) ) { … … 183 183 // ---------------------------------- 184 184 if (_co.NumberOfSat[CLOCKORBIT_SATGPS] > 0 || _bias.NumberOfSat[CLOCKORBIT_SATGPS] > 0) { 185 int GPSEpochTime = (_co.NumberOfSat[CLOCKORBIT_SATGPS] > 0) ? 185 int GPSEpochTime = (_co.NumberOfSat[CLOCKORBIT_SATGPS] > 0) ? 186 186 _co.EpochTime[CLOCKORBIT_SATGPS] : _bias.EpochTime[CLOCKORBIT_SATGPS]; 187 187 if (GPSweeksHlp > GPSEpochTime + 86400.0) { … … 197 197 // ----------------------------------- 198 198 else if (_co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0 || _bias.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0){ 199 int GLONASSEpochTime = (_co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) ? 199 int GLONASSEpochTime = (_co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) ? 200 200 _co.EpochTime[CLOCKORBIT_SATGLONASS] : _bias.EpochTime[CLOCKORBIT_SATGLONASS]; 201 201 … … 206 206 int GPSDaySec = GLONASSEpochTime - 3 * 3600 + leapSecond; 207 207 208 int weekDay = int(GPSweeksHlp/86400.0); 208 int weekDay = int(GPSweeksHlp/86400.0); 209 209 int GPSDaySecHlp = int(GPSweeksHlp) - weekDay * 86400; 210 210 … … 224 224 GPSweek -= 1; 225 225 } 226 } 226 } 227 227 _lastTime.set(GPSweek, weekDay * 86400.0 + GPSDaySec); 228 228 } … … 243 243 } 244 244 245 // 245 // 246 246 //////////////////////////////////////////////////////////////////////////// 247 247 void RTCM3coDecoder::sendResults() { … … 266 266 // Orbit correction 267 267 // ---------------- 268 if ( _co.messageType == COTYPE_GPSCOMBINED || 268 if ( _co.messageType == COTYPE_GPSCOMBINED || 269 269 _co.messageType == COTYPE_GLONASSCOMBINED || 270 270 _co.messageType == COTYPE_GPSORBIT || … … 280 280 orbCorr._xr[1] = _co.Sat[ii].Orbit.DeltaAlongTrack; 281 281 orbCorr._xr[2] = _co.Sat[ii].Orbit.DeltaCrossTrack; 282 orbCorr._dotXr[0] = _co.Sat[ii].Orbit.DotDeltaRadial; 282 orbCorr._dotXr[0] = _co.Sat[ii].Orbit.DotDeltaRadial; 283 283 orbCorr._dotXr[1] = _co.Sat[ii].Orbit.DotDeltaAlongTrack; 284 284 orbCorr._dotXr[2] = _co.Sat[ii].Orbit.DotDeltaCrossTrack; … … 289 289 } 290 290 291 if ( _co.messageType == COTYPE_GPSCOMBINED || 291 if ( _co.messageType == COTYPE_GPSCOMBINED || 292 292 _co.messageType == COTYPE_GLONASSCOMBINED || 293 293 _co.messageType == COTYPE_GPSCLOCK || … … 311 311 // High-Resolution Clocks 312 312 // ---------------------- 313 if ( _co.messageType == COTYPE_GPSHR || 313 if ( _co.messageType == COTYPE_GPSHR || 314 314 _co.messageType == COTYPE_GLONASSHR ) { 315 315 } … … 360 360 } 361 361 362 // 362 // 363 363 //////////////////////////////////////////////////////////////////////////// 364 364 void RTCM3coDecoder::checkProviderID() { … … 385 385 _providerID[ii] = newProviderID[ii]; 386 386 } 387 387 388 388 if (alreadySet && different) { 389 389 emit newMessage("RTCM3coDecoder: Provider Changed " + _staID.toAscii() + "\n", true);
Note:
See TracChangeset
for help on using the changeset viewer.