Changeset 3024 in ntrip


Ignore:
Timestamp:
Feb 24, 2011, 11:11:07 AM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM3/RTCM3coDecoder.cpp

    r3022 r3024  
    208208
    209209        QStringList asciiLines = corrsToASCIIlines(GPSweek, _GPSweeks,
    210                                                    _co, _bias);
     210                                                   _co, &_bias);
    211211
    212212        long coTime = GPSweek * 7*24*3600 + long(floor(_GPSweeks+0.5));
     
    246246QStringList RTCM3coDecoder::corrsToASCIIlines(int GPSweek, double GPSweeks,
    247247                                              const ClockOrbit& co,
    248                                               const Bias& bias) {
     248                                              const Bias* bias) {
    249249
    250250  QStringList retLines;
     
    266266      sysCh = 'R';
    267267    }
     268
    268269    if (sysCh != ' ') {
    269270
     
    350351  // Loop over all satellites (GPS and Glonass)
    351352  // ------------------------------------------
    352   if (bias.NumberOfGPSSat > 0 || bias.NumberOfGLONASSSat > 0) {
    353     QString line1;
    354     line1.sprintf("! Biases: %d GPS %d Glonass",
    355                   bias.NumberOfGPSSat, bias.NumberOfGLONASSSat);
    356     retLines << line1;
    357   }
    358   for (int ii = 0; ii < CLOCKORBIT_NUMGPS + bias.NumberOfGLONASSSat; ii++) {
    359     char sysCh = ' ';
    360     int messageType;
    361     if      (ii < bias.NumberOfGPSSat) {
    362       sysCh = 'G';
    363       messageType = BTYPE_GPS;
    364     }
    365     else if (ii >= CLOCKORBIT_NUMGPS) {
    366       sysCh = 'R';
    367       messageType = BTYPE_GLONASS;
    368     }
    369     if (sysCh != ' ') {
    370       QString line;
    371       line.sprintf("%d %d %d %.1f %c%2.2d %d",
    372                    messageType, bias.UpdateInterval, GPSweek, GPSweeks,
    373                    sysCh, bias.Sat[ii].ID,
    374                    bias.Sat[ii].NumberOfCodeBiases);
    375       for (int jj = 0; jj < bias.Sat[ii].NumberOfCodeBiases; jj++) {
    376         QString hlp;
    377         hlp.sprintf(" %d %8.3f",  bias.Sat[ii].Biases[jj].Type,
    378                     bias.Sat[ii].Biases[jj].Bias);
    379         line += hlp;
    380       }
    381       retLines << line;
     353  if (bias) {
     354    if (bias->NumberOfGPSSat > 0 || bias->NumberOfGLONASSSat > 0) {
     355      QString line1;
     356      line1.sprintf("! Biases: %d GPS %d Glonass",
     357                    bias->NumberOfGPSSat, bias->NumberOfGLONASSSat);
     358      retLines << line1;
     359    }
     360    for (int ii = 0; ii < CLOCKORBIT_NUMGPS + bias->NumberOfGLONASSSat; ii++) {
     361      char sysCh = ' ';
     362      int messageType;
     363      if      (ii < bias->NumberOfGPSSat) {
     364        sysCh = 'G';
     365        messageType = BTYPE_GPS;
     366      }
     367      else if (ii >= CLOCKORBIT_NUMGPS) {
     368        sysCh = 'R';
     369        messageType = BTYPE_GLONASS;
     370      }
     371      if (sysCh != ' ') {
     372        QString line;
     373        line.sprintf("%d %d %d %.1f %c%2.2d %d",
     374                     messageType, bias->UpdateInterval, GPSweek, GPSweeks,
     375                     sysCh, bias->Sat[ii].ID,
     376                     bias->Sat[ii].NumberOfCodeBiases);
     377        for (int jj = 0; jj < bias->Sat[ii].NumberOfCodeBiases; jj++) {
     378          QString hlp;
     379          hlp.sprintf(" %d %8.3f",  bias->Sat[ii].Biases[jj].Type,
     380                      bias->Sat[ii].Biases[jj].Bias);
     381          line += hlp;
     382        }
     383        retLines << line;
     384      }
    382385    }
    383386  }
  • trunk/BNC/RTCM3/RTCM3coDecoder.h

    r3022 r3024  
    4646
    4747  static QStringList corrsToASCIIlines(int GPSweek, double GPSweeks,
    48                                        const ClockOrbit& co, const Bias& _bias);
     48                                       const ClockOrbit& co, const Bias* bias);
    4949
    5050 signals:
  • trunk/BNC/combination/bnccomb.cpp

    r3016 r3024  
    333333    }
    334334  }
     335
     336  co.messageType = COTYPE_GPSCOMBINED;
     337
     338  QStringList asciiLines =
     339    RTCM3coDecoder::corrsToASCIIlines(resTime.gpsw(), resTime.gpssec(), co, 0);
     340
     341  QStringListIterator il(asciiLines);
     342  while (il.hasNext()) {
     343    QString line = il.next();
     344    cout << line.toAscii().data() << endl;
     345  }
    335346}
    336347
  • trunk/BNC/combination/bnccomb.h

    r3015 r3024  
    3434 signals:
    3535  void newMessage(QByteArray msg, bool showOnScreen);
     36  void newCorrLine(QString line, QString staID, long coTime);
    3637
    3738 private:
Note: See TracChangeset for help on using the changeset viewer.