Changeset 10692 in ntrip for trunk/BNC/src/GPSDecoder.h
- Timestamp:
- Jul 8, 2025, 10:07:50 AM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/GPSDecoder.h
r10691 r10692 62 62 struct t_typeInfo { 63 63 t_typeInfo() { 64 type = 0; 65 size = 0; 64 _type = 0; 65 _size = 0; 66 66 }; 67 int type; 68 size_t size; 67 int _type; 68 size_t _size; 69 69 }; 70 70 … … 74 74 75 75 t_antRefPoint() { 76 xx = yy = zz =height = 0.0;77 type = ARP; 78 height_f = false; 79 message = 0; 76 _xx = _yy = _zz = _height = 0.0; 77 _type = ARP; 78 _height_f = false; 79 _message = 0; 80 80 }; 81 81 82 double xx; 83 double yy; 84 double zz; 85 t_type type; 86 double height; 87 bool height_f; 88 int message; 82 double _xx; 83 double _yy; 84 double _zz; 85 t_type _type; 86 double _height; 87 bool _height_f; 88 int _message; 89 89 }; 90 90 … … 92 92 t_antInfo() { 93 93 }; 94 char descriptor[256]; 95 char serialnumber[256]; 94 char _descriptor[256]; 95 char _serialnumber[256]; 96 96 }; 97 97 … … 99 99 t_recInfo() { 100 100 }; 101 char descriptor[256]; 102 char serialnumber[256]; 103 char firmware[256]; 101 char _descriptor[256]; 102 char _serialnumber[256]; 103 char _firmware[256]; 104 104 }; 105 105 … … 107 107 public: 108 108 t_GloBiasInfo() { 109 clear();109 init(); 110 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 ) { 111 bool operator!=(const t_GloBiasInfo& gloBiasInfo2) { 112 113 if (_staID != gloBiasInfo2._staID || 114 _indicator != gloBiasInfo2._indicator || 115 (fabs(_L1C_value - gloBiasInfo2._L1C_value) > 0.000000000001 ) || 116 (fabs(_L1P_value - gloBiasInfo2._L1P_value) > 0.000000000001 ) || 117 (fabs(_L2C_value - gloBiasInfo2._L2C_value) > 0.000000000001 ) || 118 (fabs(_L2P_value - gloBiasInfo2._L2P_value) > 0.000000000001 ) ) { 119 setChanged(true); 118 120 return true; 119 121 } 120 122 else { 123 setChanged(false); 121 124 return false; 122 125 } 123 126 } 124 127 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; 128 void set(const t_GloBiasInfo& gloBiasInfo) { 129 _staID = gloBiasInfo._staID; 130 _indicator = gloBiasInfo._indicator; 131 _L1C_value = gloBiasInfo._L1C_value; 132 _L1P_value = gloBiasInfo._L1P_value; 133 _L2C_value = gloBiasInfo._L2C_value; 134 _L2P_value = gloBiasInfo._L2P_value; 133 135 } 134 135 void clear() { 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; 136 void setChanged(bool changed) { 137 _changed = changed; 138 } 139 bool changed() {return _changed;}; 140 void init() { 141 _staID = 0; 142 _indicator = 1; 143 _L1C_value = 0.0; 144 _L1P_value = 0.0; 145 _L2C_value = 0.0; 146 _L2P_value = 0.0; 147 _changed = false; 143 148 } 144 149 QString toString() { 145 QString biasIndicator = (indicator == 1) ? QString("aligned") : QString("unaligned"); 150 QString biasIndicator = (_indicator == 1) ? QString("aligned") : QString("unaligned"); 146 151 QString biasesStr = 147 152 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 .arg(_staID).arg(biasIndicator) 154 .arg(_L1C_value, 0, 'f', 2) 155 .arg(_L1P_value, 0, 'f', 2) 156 .arg(_L2C_value, 0, 'f', 2) 157 .arg(_L2P_value, 0, 'f', 2); 153 158 154 159 return biasesStr; 155 160 } 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; 161 162 int _staID; 163 int _indicator; 164 double _L1C_value; 165 double _L1P_value; 166 double _L2C_value; 167 double _L2P_value; 168 bool _changed; 163 169 164 170 … … 175 181 QList<t_rtcmCrs> _rtcmCrs; // RTCM CRS 176 182 QString _gloFrq; // GLONASS slot 177 t_GloBiasInfo _gloBias es; // RTCM GLO bias information message183 t_GloBiasInfo _gloBiasInfo; // RTCM GLO bias information message 178 184 bncRinex* _rnx; // RINEX writer 179 185 };
Note:
See TracChangeset
for help on using the changeset viewer.