Changeset 5665 in ntrip for trunk/BNC/src/RTCM3
- Timestamp:
- May 26, 2014, 5:09:47 PM (11 years ago)
- Location:
- trunk/BNC/src/RTCM3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp
r5580 r5665 149 149 memcpy(&co_sav, &_co, sizeof(co_sav)); // save state 150 150 151 GCOB_RETURN irc = Get ClockOrbitBias(&_co, &_bias, _buffer.data(),151 GCOB_RETURN irc = GetSSR(&_co, &_bias, 0, 0, _buffer.data(), 152 152 _buffer.size(), &bytesused); 153 153 … … 167 167 168 168 if ( (irc == GCOBR_OK || irc == GCOBR_MESSAGEFOLLOWS ) && 169 (_co.NumberOf GPSSat > 0 || _co.NumberOfGLONASSSat> 0 ||170 _bias.NumberOf GPSSat > 0 || _bias.NumberOfGLONASSSat> 0) ) {169 (_co.NumberOfSat[CLOCKORBIT_SATGPS] > 0 || _co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0 || 170 _bias.NumberOfSat[CLOCKORBIT_SATGPS] > 0 || _bias.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) ) { 171 171 172 172 reopen(_fileNameSkl, _fileName, _out); … … 180 180 // Correction Epoch from GPSEpochTime 181 181 // ---------------------------------- 182 if (_co.NumberOf GPSSat > 0 || _bias.NumberOfGPSSat> 0) {183 int GPSEpochTime = (_co.NumberOf GPSSat> 0) ?184 _co. GPSEpochTime : _bias.GPSEpochTime;182 if (_co.NumberOfSat[CLOCKORBIT_SATGPS] > 0 || _bias.NumberOfSat[CLOCKORBIT_SATGPS] > 0) { 183 int GPSEpochTime = (_co.NumberOfSat[CLOCKORBIT_SATGPS] > 0) ? 184 _co.EpochTime[CLOCKORBIT_SATGPS] : _bias.EpochTime[CLOCKORBIT_SATGPS]; 185 185 if (GPSweeksHlp > GPSEpochTime + 86400.0) { 186 186 GPSweek += 1; … … 194 194 // Correction Epoch from Glonass Epoch 195 195 // ----------------------------------- 196 else if (_co.NumberOf GLONASSSat > 0 || _bias.NumberOfGLONASSSat> 0){197 int GLONASSEpochTime = (_co.NumberOf GLONASSSat> 0) ?198 _co. GLONASSEpochTime : _bias.GLONASSEpochTime;196 else if (_co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0 || _bias.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0){ 197 int GLONASSEpochTime = (_co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) ? 198 _co.EpochTime[CLOCKORBIT_SATGLONASS] : _bias.EpochTime[CLOCKORBIT_SATGLONASS]; 199 199 200 200 // Second of day (GPS time) from Glonass Epoch … … 282 282 QStringList RTCM3coDecoder::corrsToASCIIlines(int GPSweek, double GPSweeks, 283 283 const ClockOrbit& co, 284 const Bias* bias) {284 const CodeBias* bias) { 285 285 286 286 QStringList retLines; … … 288 288 // Loop over all satellites (GPS and Glonass) 289 289 // ------------------------------------------ 290 if (co.NumberOf GPSSat > 0 || co.NumberOfGLONASSSat> 0) {290 if (co.NumberOfSat[CLOCKORBIT_SATGPS] > 0 || co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) { 291 291 QString line1; 292 292 line1.sprintf("! Orbits/Clocks: %d GPS %d Glonass", 293 co.NumberOf GPSSat, co.NumberOfGLONASSSat);293 co.NumberOfSat[CLOCKORBIT_SATGPS], co.NumberOfSat[CLOCKORBIT_SATGLONASS]); 294 294 retLines << line1; 295 295 } 296 for (int ii = 0; ii < CLOCKORBIT_NUMGPS+co.NumberOf GLONASSSat; ii++) {296 for (int ii = 0; ii < CLOCKORBIT_NUMGPS+co.NumberOfSat[CLOCKORBIT_SATGLONASS]; ii++) { 297 297 char sysCh = ' '; 298 if (ii < co.NumberOf GPSSat) {298 if (ii < co.NumberOfSat[CLOCKORBIT_SATGPS]) { 299 299 sysCh = 'G'; 300 300 } … … 385 385 // ------------------------------------------ 386 386 if (bias) { 387 if (bias->NumberOf GPSSat > 0 || bias->NumberOfGLONASSSat> 0) {387 if (bias->NumberOfSat[CLOCKORBIT_SATGPS] > 0 || bias->NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) { 388 388 QString line1; 389 389 line1.sprintf("! Biases: %d GPS %d Glonass", 390 bias->NumberOf GPSSat, bias->NumberOfGLONASSSat);390 bias->NumberOfSat[CLOCKORBIT_SATGPS], bias->NumberOfSat[CLOCKORBIT_SATGLONASS]); 391 391 retLines << line1; 392 392 } 393 for (int ii = 0; ii < CLOCKORBIT_NUMGPS + bias->NumberOf GLONASSSat; ii++) {393 for (int ii = 0; ii < CLOCKORBIT_NUMGPS + bias->NumberOfSat[CLOCKORBIT_SATGLONASS]; ii++) { 394 394 char sysCh = ' '; 395 395 int messageType; 396 if (ii < bias->NumberOf GPSSat) {396 if (ii < bias->NumberOfSat[CLOCKORBIT_SATGPS]) { 397 397 sysCh = 'G'; 398 398 messageType = BTYPE_GPS; -
trunk/BNC/src/RTCM3/RTCM3coDecoder.h
r5577 r5665 46 46 47 47 static QStringList corrsToASCIIlines(int GPSweek, double GPSweeks, 48 const ClockOrbit& co, const Bias* bias);48 const ClockOrbit& co, const CodeBias* bias); 49 49 static void reopen(const QString& fileNameSkl, QString& fileName, 50 50 std::ofstream*& out); … … 64 64 double _GPSweeks; 65 65 ClockOrbit _co; 66 Bias_bias;66 CodeBias _bias; 67 67 int _providerID[3]; 68 68 };
Note:
See TracChangeset
for help on using the changeset viewer.