Changeset 10688 in ntrip for trunk/BNC/src/GPSDecoder.h


Ignore:
Timestamp:
Jul 4, 2025, 12:13:03 PM (14 months ago)
Author:
stuerze
Message:

RTCM message 1230 (on-change) and the size of each RTCM message is added in scanRTCM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/GPSDecoder.h

    r10619 r10688  
    6060  void setRinexReconnectFlag(bool flag);
    6161
     62  struct t_typeInfo {
     63    t_typeInfo() {
     64      type = 0;
     65      size = 0;
     66    };
     67    int    type;
     68    size_t size;
     69  };
     70
     71
    6272  struct t_antRefPoint {
    6373    enum t_type { ARP, APC };
     
    94104  };
    95105
     106  class t_GloBiasInfo {
     107  public:
     108    t_GloBiasInfo() {
     109      clear();
     110    };
     111    bool operator==(const t_GloBiasInfo& biasInfo2) const {
     112      if (staID     == biasInfo2.staID &&
     113          indicator == biasInfo2.indicator &&
     114          L1C_value == biasInfo2.L1C_value &&
     115          L1P_value == biasInfo2.L1P_value &&
     116          L2C_value == biasInfo2.L2C_value &&
     117          L2P_value == biasInfo2.L2P_value  ) {
     118        return true;
     119      }
     120      else {
     121        return false;
     122      }
     123    }
     124
     125    void set(const t_GloBiasInfo& biasInfo) {
     126      staID     = biasInfo.staID;
     127      indicator = biasInfo.indicator;
     128      L1C_value = biasInfo.L1C_value;
     129      L1P_value = biasInfo.L1P_value;
     130      L2C_value = biasInfo.L2C_value;
     131      L2P_value = biasInfo.L2P_value;
     132      changed = true;
     133    }
     134
     135    void clear() {cout << "init" <<  endl;
     136      staID = 0;
     137      indicator = 0;
     138      L1C_value = 0.0;
     139      L1P_value = 0.0;
     140      L2C_value = 0.0;
     141      L2P_value = 0.0;
     142      changed = false;
     143    }
     144    QString toString() {
     145      QString biasIndicator =  (indicator == 1) ? QString("aligned") : QString("unaligned");
     146      QString biasesStr =
     147          QString(": GLONASS L1/L2 Code-Phase Biases: staID=%1 indicator=%2 L1C=%3 L1P=%4 L2C=%5 L2P=%6")
     148          .arg(staID).arg(biasIndicator)
     149          .arg(L1C_value, 0, 'f', 2)
     150          .arg(L1P_value, 0, 'f', 2)
     151          .arg(L2C_value, 0, 'f', 2)
     152          .arg(L2P_value, 0, 'f', 2);
     153
     154      return biasesStr;
     155    }
     156    int      staID;
     157    int      indicator;
     158    double   L1C_value;
     159    double   L1P_value;
     160    double   L2C_value;
     161    double   L2P_value;
     162    bool     changed;
     163
     164
     165  };
     166
    96167  /** List of observations */
    97168  QList<t_satObs>         _obsList;
    98   QList<int>              _typeList;           // RTCM message types
     169  QList<t_typeInfo>       _typeList;           // RTCM message type as message size
    99170  QList<t_antInfo>        _antType;            // RTCM antenna descriptor
    100171  QList<t_recInfo>        _recType;            // RTCM receiver descriptor
     
    104175  QList<t_rtcmCrs>        _rtcmCrs;            // RTCM CRS
    105176  QString                 _gloFrq;             // GLONASS slot
     177  t_GloBiasInfo           _gloBiases;          // RTCM GLO bias information message
    106178  bncRinex*               _rnx;                // RINEX writer
    107179};
Note: See TracChangeset for help on using the changeset viewer.