Changeset 1033 in ntrip for trunk


Ignore:
Timestamp:
Aug 13, 2008, 9:34:52 AM (16 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

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

    r1030 r1033  
    6565  const int LEAPSECONDS = 14; /* only needed for approx. time */
    6666
     67  QSettings settings;
     68  _checkMountPoint = settings.value("messTypes").toString();
    6769  _staID = staID;
    6870
     
    106108  // -----------------------------------------
    107109  if (_mode == unknown || _mode == corrections) {
     110    printf("corrections\n");
    108111    if ( _coDecoder->Decode(buffer, bufLen) == success ) {
    109112      decoded = true;
    110113      if (_mode == unknown) {
    111114        _mode = corrections;
    112         emit(newMessage( (_staID + " : mode set to corrections").toAscii() ));
     115//      emit(newMessage( (_staID + " : mode set to corrections").toAscii() ));
    113116      }
    114117    }
     
    117120  // Remaining part decodes the Observations
    118121  // ---------------------------------------
    119   if (_mode == unknown || _mode == observations) {
     122  if (_mode == unknown || _mode == observations || _checkMountPoint == _staID || _checkMountPoint == "ALL") {
     123    printf("observations\n");
    120124    for (int ii = 0; ii < bufLen; ii++) {
    121125   
     
    123127      if (_Parser.MessageSize >= _Parser.NeedBytes) {
    124128   
    125         while(int rr = RTCM3Parser(&_Parser)) {
    126 
    127129        // RTCM message types
    128130        // ------------------
     
    132134          _Parser.typeSize = 0;
    133135   
     136        while(int rr = RTCM3Parser(&_Parser)) {
     137
    134138          // GNSS Observations
    135139          // -----------------
     
    143147           
    144148            if (rr == 2) {
    145               std::cerr << "No valid RINEX! All values are modulo 299792.458!\n";
     149//            std::cerr << "No valid RINEX! All values are modulo 299792.458!\n";
     150              emit(newMessage( (_staID + ": No valid RINEX! All values are modulo 299792.458!").toAscii() ));
    146151            }
    147152           
     
    242247    if (_mode == unknown && decoded) {
    243248      _mode = observations;
    244       emit(newMessage( (_staID + " : mode set to observations").toAscii() ));
     249//    emit(newMessage( (_staID + " : mode set to observations").toAscii() ));
    245250    }
    246251  }
Note: See TracChangeset for help on using the changeset viewer.