[3222] | 1 | /* -------------------------------------------------------------------------
|
---|
| 2 | * BKG NTRIP Server
|
---|
| 3 | * -------------------------------------------------------------------------
|
---|
| 4 | *
|
---|
[3224] | 5 | * Class: bncRtnetUploadCaster
|
---|
[3222] | 6 | *
|
---|
| 7 | * Purpose: Connection to NTRIP Caster
|
---|
| 8 | *
|
---|
| 9 | * Author: L. Mervart
|
---|
| 10 | *
|
---|
| 11 | * Created: 29-Mar-2011
|
---|
| 12 | *
|
---|
[5662] | 13 | * Changes:
|
---|
[3222] | 14 | *
|
---|
| 15 | * -----------------------------------------------------------------------*/
|
---|
| 16 |
|
---|
| 17 | #include <math.h>
|
---|
[5662] | 18 | #include "bncrtnetuploadcaster.h"
|
---|
[3222] | 19 | #include "bncsettings.h"
|
---|
[3224] | 20 | #include "bncephuser.h"
|
---|
[3222] | 21 | #include "bncclockrinex.h"
|
---|
| 22 | #include "bncsp3.h"
|
---|
[6812] | 23 | #include "gnss.h"
|
---|
[3222] | 24 |
|
---|
| 25 | using namespace std;
|
---|
| 26 |
|
---|
| 27 | // Constructor
|
---|
| 28 | ////////////////////////////////////////////////////////////////////////////
|
---|
[3224] | 29 | bncRtnetUploadCaster::bncRtnetUploadCaster(const QString& mountpoint,
|
---|
[8275] | 30 | const QString& outHost, int outPort,
|
---|
| 31 | const QString& ntripVersion,
|
---|
| 32 | const QString& userName, const QString& password,
|
---|
[6877] | 33 | const QString& crdTrafo, bool CoM, const QString& sp3FileName,
|
---|
| 34 | const QString& rnxFileName, int PID, int SID, int IOD, int iRow) :
|
---|
[8275] | 35 | bncUploadCaster(mountpoint, outHost, outPort, ntripVersion, userName, password, iRow, 0) {
|
---|
[3224] | 36 |
|
---|
[8361] | 37 |
|
---|
| 38 | if (!mountpoint.isEmpty()) {
|
---|
| 39 | _casterID += mountpoint;
|
---|
| 40 | }
|
---|
[5130] | 41 | if (!outHost.isEmpty()) {
|
---|
[8361] | 42 | _casterID += " " + outHost;
|
---|
| 43 | if (outPort) {
|
---|
| 44 | _casterID += ":" + QString("%1").arg(outPort, 10);
|
---|
| 45 | }
|
---|
[5130] | 46 | }
|
---|
| 47 | if (!crdTrafo.isEmpty()) {
|
---|
| 48 | _casterID += " " + crdTrafo;
|
---|
| 49 | }
|
---|
| 50 | if (!sp3FileName.isEmpty()) {
|
---|
| 51 | _casterID += " " + sp3FileName;
|
---|
| 52 | }
|
---|
| 53 | if (!rnxFileName.isEmpty()) {
|
---|
| 54 | _casterID += " " + rnxFileName;
|
---|
| 55 | }
|
---|
| 56 |
|
---|
[6877] | 57 | _crdTrafo = crdTrafo;
|
---|
| 58 | _CoM = CoM;
|
---|
| 59 | _PID = PID;
|
---|
| 60 | _SID = SID;
|
---|
| 61 | _IOD = IOD;
|
---|
[3222] | 62 |
|
---|
[3224] | 63 | // Member that receives the ephemeris
|
---|
| 64 | // ----------------------------------
|
---|
[6441] | 65 | _ephUser = new bncEphUser(true);
|
---|
[3222] | 66 |
|
---|
[3272] | 67 | bncSettings settings;
|
---|
[6877] | 68 | QString intr = settings.value("uploadIntr").toString();
|
---|
[7297] | 69 | QStringList hlp = settings.value("cmbStreams").toStringList();
|
---|
[6559] | 70 | _samplRtcmEphCorr = settings.value("uploadSamplRtcmEphCorr").toDouble();
|
---|
| 71 | if (hlp.size() > 1) { // combination stream upload
|
---|
[6877] | 72 | _samplRtcmClkCorr = settings.value("cmbSampl").toInt();
|
---|
[6557] | 73 | }
|
---|
[6877] | 74 | else { // single stream upload or sp3 file generation
|
---|
| 75 | _samplRtcmClkCorr = 5; // default
|
---|
| 76 | }
|
---|
| 77 | int samplClkRnx = settings.value("uploadSamplClkRnx").toInt();
|
---|
| 78 | int samplSp3 = settings.value("uploadSamplSp3").toInt() * 60;
|
---|
[4174] | 79 |
|
---|
| 80 | if (_samplRtcmEphCorr == 0.0) {
|
---|
[3753] | 81 | _usedEph = 0;
|
---|
| 82 | }
|
---|
| 83 | else {
|
---|
[6442] | 84 | _usedEph = new QMap<QString, const t_eph*>;
|
---|
[3753] | 85 | }
|
---|
[3272] | 86 |
|
---|
[3222] | 87 | // RINEX writer
|
---|
| 88 | // ------------
|
---|
| 89 | if (!rnxFileName.isEmpty()) {
|
---|
[4174] | 90 | _rnx = new bncClockRinex(rnxFileName, intr, samplClkRnx);
|
---|
[3222] | 91 | }
|
---|
| 92 | else {
|
---|
| 93 | _rnx = 0;
|
---|
| 94 | }
|
---|
| 95 |
|
---|
| 96 | // SP3 writer
|
---|
| 97 | // ----------
|
---|
| 98 | if (!sp3FileName.isEmpty()) {
|
---|
[4174] | 99 | _sp3 = new bncSP3(sp3FileName, intr, samplSp3);
|
---|
[3222] | 100 | }
|
---|
| 101 | else {
|
---|
| 102 | _sp3 = 0;
|
---|
| 103 | }
|
---|
| 104 |
|
---|
| 105 | // Set Transformation Parameters
|
---|
| 106 | // -----------------------------
|
---|
[8405] | 107 | // Transformation Parameters from ITRF2014 to ETRF2000
|
---|
[6877] | 108 | if (_crdTrafo == "ETRF2000") {
|
---|
[8405] | 109 | _dx = 0.0537;
|
---|
| 110 | _dy = 0.0512;
|
---|
| 111 | _dz = -0.0551;
|
---|
[8094] | 112 | _dxr = 0.0001;
|
---|
| 113 | _dyr = 0.0001;
|
---|
[8405] | 114 | _dzr = -0.0019;
|
---|
| 115 | _ox = -0.000891;
|
---|
| 116 | _oy = -0.005390;
|
---|
| 117 | _oz = 0.008712;
|
---|
| 118 | _oxr = -0.000081;
|
---|
| 119 | _oyr = -0.000490;
|
---|
| 120 | _ozr = +0.000792;
|
---|
| 121 | _sc = 1.02;
|
---|
| 122 | _scr = 0.11;
|
---|
[8094] | 123 | _t0 = 2000.0;
|
---|
[3222] | 124 | }
|
---|
[8094] | 125 | // Transformation Parameters from ITRF2014 to GDA2020 (Ryan Ruddick, GA)
|
---|
| 126 | else if (_crdTrafo == "GDA2020") {
|
---|
| 127 | _dx = 0.0;
|
---|
| 128 | _dy = 0.0;
|
---|
| 129 | _dz = 0.0;
|
---|
| 130 | _dxr = 0.0;
|
---|
| 131 | _dyr = 0.0;
|
---|
| 132 | _dzr = 0.0;
|
---|
| 133 | _ox = 0.0;
|
---|
| 134 | _oy = 0.0;
|
---|
| 135 | _oz = 0.0;
|
---|
| 136 | _oxr = 0.00150379;
|
---|
| 137 | _oyr = 0.00118346;
|
---|
| 138 | _ozr = 0.00120716;
|
---|
| 139 | _sc = 0.0;
|
---|
| 140 | _scr = 0.0;
|
---|
| 141 | _t0 = 2020.0;
|
---|
[3222] | 142 | }
|
---|
[8094] | 143 | // Transformation Parameters from IGb14 to SIRGAS2000 (Sonia Costa, BRA)
|
---|
| 144 | else if (_crdTrafo == "SIRGAS2000") {
|
---|
| 145 | _dx = 0.0026;
|
---|
| 146 | _dy = 0.0018;
|
---|
| 147 | _dz = -0.0061;
|
---|
| 148 | _dxr = 0.0000;
|
---|
| 149 | _dyr = 0.0000;
|
---|
| 150 | _dzr = 0.0000;
|
---|
| 151 | _ox = 0.000170;
|
---|
| 152 | _oy = -0.000030;
|
---|
| 153 | _oz = 0.000070;
|
---|
| 154 | _oxr = 0.000000;
|
---|
| 155 | _oyr = 0.000000;
|
---|
| 156 | _ozr = 0.000000;
|
---|
| 157 | _sc = -1.000;
|
---|
| 158 | _scr = 0.000;
|
---|
[8096] | 159 | _t0 = 2000.4;
|
---|
[3222] | 160 | }
|
---|
[8405] | 161 | // Transformation Parameters from ITRF2014 to DREF91
|
---|
[5347] | 162 | else if (_crdTrafo == "DREF91") {
|
---|
[8405] | 163 | _dx = 0.0537;
|
---|
| 164 | _dy = 0.0512;
|
---|
| 165 | _dz = -0.0551;
|
---|
[8094] | 166 | _dxr = 0.0001;
|
---|
| 167 | _dyr = 0.0001;
|
---|
[8405] | 168 | _dzr = -0.0019;
|
---|
| 169 | _ox = -0.000233;
|
---|
| 170 | _oy = -0.005598;
|
---|
| 171 | _oz = 0.009467;
|
---|
| 172 | _oxr = -0.000081;
|
---|
| 173 | _oyr = -0.000490;
|
---|
| 174 | _ozr = 0.000792;
|
---|
| 175 | _sc = 1.02;
|
---|
| 176 | _scr = 0.11;
|
---|
[8094] | 177 | _t0 = 2000.0;
|
---|
[5340] | 178 | }
|
---|
[3222] | 179 | else if (_crdTrafo == "Custom") {
|
---|
[6877] | 180 | _dx = settings.value("trafo_dx").toDouble();
|
---|
| 181 | _dy = settings.value("trafo_dy").toDouble();
|
---|
| 182 | _dz = settings.value("trafo_dz").toDouble();
|
---|
[3222] | 183 | _dxr = settings.value("trafo_dxr").toDouble();
|
---|
| 184 | _dyr = settings.value("trafo_dyr").toDouble();
|
---|
| 185 | _dzr = settings.value("trafo_dzr").toDouble();
|
---|
[6877] | 186 | _ox = settings.value("trafo_ox").toDouble();
|
---|
| 187 | _oy = settings.value("trafo_oy").toDouble();
|
---|
| 188 | _oz = settings.value("trafo_oz").toDouble();
|
---|
[3222] | 189 | _oxr = settings.value("trafo_oxr").toDouble();
|
---|
| 190 | _oyr = settings.value("trafo_oyr").toDouble();
|
---|
| 191 | _ozr = settings.value("trafo_ozr").toDouble();
|
---|
[6877] | 192 | _sc = settings.value("trafo_sc").toDouble();
|
---|
[3222] | 193 | _scr = settings.value("trafo_scr").toDouble();
|
---|
[6877] | 194 | _t0 = settings.value("trafo_t0").toDouble();
|
---|
[3222] | 195 | }
|
---|
| 196 | }
|
---|
| 197 |
|
---|
| 198 | // Destructor
|
---|
| 199 | ////////////////////////////////////////////////////////////////////////////
|
---|
[3224] | 200 | bncRtnetUploadCaster::~bncRtnetUploadCaster() {
|
---|
[3222] | 201 | if (isRunning()) {
|
---|
| 202 | wait();
|
---|
| 203 | }
|
---|
| 204 | delete _rnx;
|
---|
| 205 | delete _sp3;
|
---|
| 206 | delete _ephUser;
|
---|
[3753] | 207 | delete _usedEph;
|
---|
[3222] | 208 | }
|
---|
| 209 |
|
---|
[5662] | 210 | //
|
---|
[3222] | 211 | ////////////////////////////////////////////////////////////////////////////
|
---|
[3224] | 212 | void bncRtnetUploadCaster::decodeRtnetStream(char* buffer, int bufLen) {
|
---|
[5662] | 213 |
|
---|
[3222] | 214 | QMutexLocker locker(&_mutex);
|
---|
| 215 |
|
---|
[3230] | 216 | // Append to internal buffer
|
---|
| 217 | // -------------------------
|
---|
[3222] | 218 | _rtnetStreamBuffer.append(QByteArray(buffer, bufLen));
|
---|
[3230] | 219 |
|
---|
| 220 | // Select buffer part that contains last epoch
|
---|
| 221 | // -------------------------------------------
|
---|
| 222 | QStringList lines;
|
---|
| 223 | int iEpoBeg = _rtnetStreamBuffer.lastIndexOf('*'); // begin of last epoch
|
---|
| 224 | if (iEpoBeg == -1) {
|
---|
[3226] | 225 | _rtnetStreamBuffer.clear();
|
---|
| 226 | return;
|
---|
[3222] | 227 | }
|
---|
[6896] | 228 | int iEpoBegEarlier = _rtnetStreamBuffer.indexOf('*');
|
---|
| 229 | if (iEpoBegEarlier != -1 && iEpoBegEarlier < iEpoBeg) { // are there two epoch lines in buffer?
|
---|
[8085] | 230 | _rtnetStreamBuffer = _rtnetStreamBuffer.mid(iEpoBegEarlier);
|
---|
[6896] | 231 | }
|
---|
| 232 | else {
|
---|
| 233 | _rtnetStreamBuffer = _rtnetStreamBuffer.mid(iEpoBeg);
|
---|
| 234 | }
|
---|
[3230] | 235 |
|
---|
| 236 | int iEpoEnd = _rtnetStreamBuffer.lastIndexOf("EOE"); // end of last epoch
|
---|
| 237 | if (iEpoEnd == -1) {
|
---|
| 238 | return;
|
---|
| 239 | }
|
---|
[3226] | 240 | else {
|
---|
[6877] | 241 | lines = _rtnetStreamBuffer.left(iEpoEnd).split('\n',
|
---|
| 242 | QString::SkipEmptyParts);
|
---|
| 243 | _rtnetStreamBuffer = _rtnetStreamBuffer.mid(iEpoEnd + 3);
|
---|
[3226] | 244 | }
|
---|
[3222] | 245 |
|
---|
[3226] | 246 | if (lines.size() < 2) {
|
---|
[3222] | 247 | return;
|
---|
| 248 | }
|
---|
| 249 |
|
---|
[3226] | 250 | // Read first line (with epoch time)
|
---|
| 251 | // ---------------------------------
|
---|
[8204] | 252 | QTextStream in(lines[0].toLatin1());
|
---|
[3226] | 253 | QString hlp;
|
---|
[6877] | 254 | int year, month, day, hour, min;
|
---|
| 255 | double sec;
|
---|
[3226] | 256 | in >> hlp >> year >> month >> day >> hour >> min >> sec;
|
---|
[6877] | 257 | bncTime epoTime;
|
---|
| 258 | epoTime.set(year, month, day, hour, min, sec);
|
---|
[3226] | 259 |
|
---|
[6877] | 260 | emit(newMessage(
|
---|
| 261 | "bncRtnetUploadCaster: decode " + QByteArray(epoTime.datestr().c_str())
|
---|
| 262 | + " " + QByteArray(epoTime.timestr().c_str()) + " "
|
---|
[8204] | 263 | + _casterID.toLatin1(), false));
|
---|
[4808] | 264 |
|
---|
[3222] | 265 | struct ClockOrbit co;
|
---|
| 266 | memset(&co, 0, sizeof(co));
|
---|
[5672] | 267 | co.EpochTime[CLOCKORBIT_SATGPS] = static_cast<int>(epoTime.gpssec());
|
---|
| 268 | double gt = epoTime.gpssec() + 3 * 3600 - gnumleap(year, month, day);
|
---|
| 269 | co.EpochTime[CLOCKORBIT_SATGLONASS] = static_cast<int>(fmod(gt, 86400.0));
|
---|
[6846] | 270 | co.EpochTime[CLOCKORBIT_SATGALILEO] = static_cast<int>(epoTime.gpssec());
|
---|
[6877] | 271 | co.EpochTime[CLOCKORBIT_SATQZSS] = static_cast<int>(epoTime.gpssec());
|
---|
[6846] | 272 | co.EpochTime[CLOCKORBIT_SATSBAS] = static_cast<int>(epoTime.gpssec());
|
---|
| 273 | co.EpochTime[CLOCKORBIT_SATBDS] = static_cast<int>(epoTime.bdssec());
|
---|
[5666] | 274 | co.Supplied[COBOFS_CLOCK] = 1;
|
---|
| 275 | co.Supplied[COBOFS_ORBIT] = 1;
|
---|
[6877] | 276 | co.SatRefDatum = DATUM_ITRF;
|
---|
| 277 | co.SSRIOD = _IOD;
|
---|
[6850] | 278 | co.SSRProviderID = _PID; // 256 .. BKG, 257 ... EUREF
|
---|
| 279 | co.SSRSolutionID = _SID;
|
---|
[5662] | 280 |
|
---|
[5666] | 281 | struct CodeBias bias;
|
---|
[3222] | 282 | memset(&bias, 0, sizeof(bias));
|
---|
[6877] | 283 | bias.EpochTime[CLOCKORBIT_SATGPS] = co.EpochTime[CLOCKORBIT_SATGPS];
|
---|
[5666] | 284 | bias.EpochTime[CLOCKORBIT_SATGLONASS] = co.EpochTime[CLOCKORBIT_SATGLONASS];
|
---|
[6846] | 285 | bias.EpochTime[CLOCKORBIT_SATGALILEO] = co.EpochTime[CLOCKORBIT_SATGALILEO];
|
---|
[6877] | 286 | bias.EpochTime[CLOCKORBIT_SATQZSS] = co.EpochTime[CLOCKORBIT_SATQZSS];
|
---|
| 287 | bias.EpochTime[CLOCKORBIT_SATSBAS] = co.EpochTime[CLOCKORBIT_SATSBAS];
|
---|
| 288 | bias.EpochTime[CLOCKORBIT_SATBDS] = co.EpochTime[CLOCKORBIT_SATBDS];
|
---|
| 289 | bias.SSRIOD = _IOD;
|
---|
[6850] | 290 | bias.SSRProviderID = _PID;
|
---|
| 291 | bias.SSRSolutionID = _SID;
|
---|
[5662] | 292 |
|
---|
[6850] | 293 | struct PhaseBias phasebias;
|
---|
| 294 | memset(&phasebias, 0, sizeof(phasebias));
|
---|
[8017] | 295 | unsigned int dispersiveBiasConsistenyIndicator = 0;
|
---|
| 296 | unsigned int mwConsistencyIndicator = 0;
|
---|
[6877] | 297 | phasebias.EpochTime[CLOCKORBIT_SATGPS] = co.EpochTime[CLOCKORBIT_SATGPS];
|
---|
[6850] | 298 | phasebias.EpochTime[CLOCKORBIT_SATGLONASS] = co.EpochTime[CLOCKORBIT_SATGLONASS];
|
---|
| 299 | phasebias.EpochTime[CLOCKORBIT_SATGALILEO] = co.EpochTime[CLOCKORBIT_SATGALILEO];
|
---|
[6877] | 300 | phasebias.EpochTime[CLOCKORBIT_SATQZSS] = co.EpochTime[CLOCKORBIT_SATQZSS];
|
---|
| 301 | phasebias.EpochTime[CLOCKORBIT_SATSBAS] = co.EpochTime[CLOCKORBIT_SATSBAS];
|
---|
| 302 | phasebias.EpochTime[CLOCKORBIT_SATBDS] = co.EpochTime[CLOCKORBIT_SATBDS];
|
---|
| 303 | phasebias.SSRIOD = _IOD;
|
---|
[6850] | 304 | phasebias.SSRProviderID = _PID;
|
---|
| 305 | phasebias.SSRSolutionID = _SID;
|
---|
| 306 |
|
---|
[6860] | 307 | struct VTEC vtec;
|
---|
| 308 | memset(&vtec, 0, sizeof(vtec));
|
---|
| 309 | vtec.EpochTime = static_cast<int>(epoTime.gpssec());
|
---|
[6877] | 310 | vtec.SSRIOD = _IOD;
|
---|
[6860] | 311 | vtec.SSRProviderID = _PID;
|
---|
| 312 | vtec.SSRSolutionID = _SID;
|
---|
| 313 |
|
---|
[4753] | 314 | // Default Update Interval
|
---|
| 315 | // -----------------------
|
---|
[4754] | 316 | int clkUpdInd = 2; // 5 sec
|
---|
| 317 | int ephUpdInd = clkUpdInd; // default
|
---|
[6557] | 318 |
|
---|
[6559] | 319 | if (_samplRtcmClkCorr > 5.0 && _samplRtcmEphCorr <= 5.0) { // combined orb and clock
|
---|
| 320 | ephUpdInd = determineUpdateInd(_samplRtcmClkCorr);
|
---|
[4754] | 321 | }
|
---|
[6559] | 322 | if (_samplRtcmClkCorr > 5.0) {
|
---|
[6557] | 323 | clkUpdInd = determineUpdateInd(_samplRtcmClkCorr);
|
---|
[4754] | 324 | }
|
---|
[6559] | 325 | if (_samplRtcmEphCorr > 5.0) {
|
---|
| 326 | ephUpdInd = determineUpdateInd(_samplRtcmEphCorr);
|
---|
| 327 | }
|
---|
[4753] | 328 |
|
---|
[6877] | 329 | co.UpdateInterval = clkUpdInd;
|
---|
[4754] | 330 | bias.UpdateInterval = clkUpdInd;
|
---|
[6850] | 331 | phasebias.UpdateInterval = clkUpdInd;
|
---|
[4753] | 332 |
|
---|
[3226] | 333 | for (int ii = 1; ii < lines.size(); ii++) {
|
---|
[6877] | 334 | QString key; // prn or key VTEC, IND (phase bias indicators)
|
---|
[8483] | 335 | double rtnUra; // [m]
|
---|
| 336 | ColumnVector rtnAPC; // [m, m, m]
|
---|
| 337 | ColumnVector rtnVel; // [m/s, m/s, m/s]]
|
---|
| 338 | ColumnVector rtnCoM; // [m, m, m]
|
---|
| 339 | ColumnVector rtnClk; // [m, m/s, m/s²]
|
---|
| 340 | ColumnVector rtnClkSig; // [m, m/s, m/s²]
|
---|
[6877] | 341 | t_prn prn;
|
---|
[5662] | 342 |
|
---|
[8204] | 343 | QTextStream in(lines[ii].toLatin1());
|
---|
[3222] | 344 |
|
---|
[6876] | 345 | in >> key;
|
---|
[3222] | 346 |
|
---|
[6860] | 347 | // non-satellite specific parameters
|
---|
[6877] | 348 | if (key.contains("IND", Qt::CaseSensitive)) {
|
---|
[8017] | 349 | in >> dispersiveBiasConsistenyIndicator >> mwConsistencyIndicator;
|
---|
[6860] | 350 | continue;
|
---|
| 351 | }
|
---|
[6893] | 352 | // non-satellite specific parameters
|
---|
[6876] | 353 | if (key.contains("VTEC", Qt::CaseSensitive)) {
|
---|
[6897] | 354 | double ui;
|
---|
| 355 | in >> ui >> vtec.NumLayers;
|
---|
| 356 | vtec.UpdateInterval = (unsigned int) determineUpdateInd(ui);
|
---|
[6860] | 357 | for (unsigned ll = 0; ll < vtec.NumLayers; ll++) {
|
---|
| 358 | int dummy;
|
---|
| 359 | in >> dummy >> vtec.Layers[ll].Degree >> vtec.Layers[ll].Order
|
---|
[6877] | 360 | >> vtec.Layers[ll].Height;
|
---|
[6879] | 361 | for (unsigned iDeg = 0; iDeg <= vtec.Layers[ll].Degree; iDeg++) {
|
---|
| 362 | for (unsigned iOrd = 0; iOrd <= vtec.Layers[ll].Order; iOrd++) {
|
---|
[6860] | 363 | in >> vtec.Layers[ll].Cosinus[iDeg][iOrd];
|
---|
| 364 | }
|
---|
| 365 | }
|
---|
[6879] | 366 | for (unsigned iDeg = 0; iDeg <= vtec.Layers[ll].Degree; iDeg++) {
|
---|
| 367 | for (unsigned iOrd = 0; iOrd <= vtec.Layers[ll].Order; iOrd++) {
|
---|
[6860] | 368 | in >> vtec.Layers[ll].Sinus[iDeg][iOrd];
|
---|
| 369 | }
|
---|
| 370 | }
|
---|
| 371 | }
|
---|
| 372 | continue;
|
---|
| 373 | }
|
---|
[6877] | 374 | // satellite specific parameters
|
---|
[8204] | 375 | char sys = key.mid(0, 1).at(0).toLatin1();
|
---|
[6877] | 376 | int number = key.mid(1, 2).toInt();
|
---|
| 377 | int flags = 0;
|
---|
| 378 | if (sys == 'E') { // I/NAV
|
---|
| 379 | flags = 1;
|
---|
| 380 | }
|
---|
[6876] | 381 | prn.set(sys, number, flags);
|
---|
| 382 | QString prnInternalStr = QString::fromStdString(prn.toInternalString());
|
---|
[6877] | 383 | QString prnStr = QString::fromStdString(prn.toString());
|
---|
| 384 |
|
---|
[6876] | 385 | const t_eph* ephLast = _ephUser->ephLast(prnInternalStr);
|
---|
| 386 | const t_eph* ephPrev = _ephUser->ephPrev(prnInternalStr);
|
---|
[6877] | 387 | const t_eph* eph = ephLast;
|
---|
[6442] | 388 | if (eph) {
|
---|
[3754] | 389 |
|
---|
[4098] | 390 | // Use previous ephemeris if the last one is too recent
|
---|
| 391 | // ----------------------------------------------------
|
---|
| 392 | const int MINAGE = 60; // seconds
|
---|
[6877] | 393 | if (ephPrev && eph->receptDateTime().isValid()
|
---|
| 394 | && eph->receptDateTime().secsTo(currentDateAndTimeGPS()) < MINAGE) {
|
---|
[6442] | 395 | eph = ephPrev;
|
---|
[4098] | 396 | }
|
---|
[3754] | 397 |
|
---|
[3753] | 398 | // Make sure the clock messages refer to same IOD as orbit messages
|
---|
| 399 | // ----------------------------------------------------------------
|
---|
| 400 | if (_usedEph) {
|
---|
[4174] | 401 | if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
|
---|
[6876] | 402 | (*_usedEph)[prnInternalStr] = eph;
|
---|
[3753] | 403 | }
|
---|
| 404 | else {
|
---|
| 405 | eph = 0;
|
---|
[6876] | 406 | if (_usedEph->contains(prnInternalStr)) {
|
---|
| 407 | const t_eph* usedEph = _usedEph->value(prnInternalStr);
|
---|
[6877] | 408 | if (usedEph == ephLast) {
|
---|
[6442] | 409 | eph = ephLast;
|
---|
[3753] | 410 | }
|
---|
[6442] | 411 | else if (usedEph == ephPrev) {
|
---|
| 412 | eph = ephPrev;
|
---|
[3753] | 413 | }
|
---|
| 414 | }
|
---|
| 415 | }
|
---|
| 416 | }
|
---|
| 417 | }
|
---|
| 418 |
|
---|
| 419 | if (eph) {
|
---|
| 420 |
|
---|
[5503] | 421 | QMap<QString, double> codeBiases;
|
---|
[6851] | 422 | QList<phaseBiasSignal> phaseBiasList;
|
---|
| 423 | phaseBiasesSat pbSat;
|
---|
[5503] | 424 |
|
---|
[4991] | 425 | while (true) {
|
---|
| 426 | QString key;
|
---|
[6877] | 427 | int numVal = 0;
|
---|
[6850] | 428 | in >> key;
|
---|
[4991] | 429 | if (in.status() != QTextStream::Ok) {
|
---|
| 430 | break;
|
---|
| 431 | }
|
---|
[6877] | 432 | if (key == "APC") {
|
---|
[6850] | 433 | in >> numVal;
|
---|
[4991] | 434 | rtnAPC.ReSize(3);
|
---|
[6850] | 435 | for (int ii = 0; ii < numVal; ii++) {
|
---|
| 436 | in >> rtnAPC[ii];
|
---|
| 437 | }
|
---|
[4991] | 438 | }
|
---|
[8483] | 439 | else if (key == "Ura") {
|
---|
[6850] | 440 | in >> numVal;
|
---|
[6877] | 441 | if (numVal == 1)
|
---|
[8483] | 442 | in >> rtnUra;
|
---|
[4991] | 443 | }
|
---|
[8483] | 444 | else if (key == "Clk") {
|
---|
| 445 | rtnClk.ReSize(3);
|
---|
| 446 | for (int ii = 0; ii < 3; ii++) {
|
---|
| 447 | rtnClk[ii] = 0.0;
|
---|
| 448 | }
|
---|
| 449 | in >> numVal;
|
---|
| 450 | for (int ii = 0; ii < numVal; ii++) {
|
---|
| 451 | in >> rtnClk[ii];
|
---|
| 452 | }
|
---|
| 453 | }
|
---|
| 454 | else if (key == "ClkSig") {
|
---|
| 455 | rtnClkSig.ReSize(3);
|
---|
| 456 | for (int ii = 0; ii < 3; ii++) {
|
---|
| 457 | rtnClkSig[ii] = 0.0;
|
---|
| 458 | }
|
---|
| 459 | in >> numVal;
|
---|
| 460 | for (int ii = 0; ii < numVal; ii++) {
|
---|
| 461 | in >> rtnClkSig[ii];
|
---|
| 462 | }
|
---|
| 463 | }
|
---|
[4991] | 464 | else if (key == "Vel") {
|
---|
| 465 | rtnVel.ReSize(3);
|
---|
[6850] | 466 | in >> numVal;
|
---|
| 467 | for (int ii = 0; ii < numVal; ii++) {
|
---|
| 468 | in >> rtnVel[ii];
|
---|
| 469 | }
|
---|
[4991] | 470 | }
|
---|
| 471 | else if (key == "CoM") {
|
---|
| 472 | rtnCoM.ReSize(3);
|
---|
[6850] | 473 | in >> numVal;
|
---|
| 474 | for (int ii = 0; ii < numVal; ii++) {
|
---|
| 475 | in >> rtnCoM[ii];
|
---|
| 476 | }
|
---|
[4991] | 477 | }
|
---|
[5503] | 478 | else if (key == "CodeBias") {
|
---|
[6850] | 479 | in >> numVal;
|
---|
[5503] | 480 | for (int ii = 0; ii < numVal; ii++) {
|
---|
| 481 | QString type;
|
---|
[6877] | 482 | double value;
|
---|
[5503] | 483 | in >> type >> value;
|
---|
| 484 | codeBiases[type] = value;
|
---|
| 485 | }
|
---|
| 486 | }
|
---|
[6857] | 487 | else if (key == "YawAngle") {
|
---|
[8017] | 488 | in >> numVal >> pbSat.yawAngle;
|
---|
| 489 | if (pbSat.yawAngle < 0.0) {
|
---|
| 490 | pbSat.yawAngle += (2*M_PI);
|
---|
[6975] | 491 | }
|
---|
[8017] | 492 | else if (pbSat.yawAngle > 2*M_PI) {
|
---|
| 493 | pbSat.yawAngle -= (2*M_PI);
|
---|
[6975] | 494 | }
|
---|
[6851] | 495 | }
|
---|
[6857] | 496 | else if (key == "YawRate") {
|
---|
[8017] | 497 | in >> numVal >> pbSat.yawRate;
|
---|
[6851] | 498 | }
|
---|
[6850] | 499 | else if (key == "PhaseBias") {
|
---|
| 500 | in >> numVal;
|
---|
| 501 | for (int ii = 0; ii < numVal; ii++) {
|
---|
[6851] | 502 | phaseBiasSignal pb;
|
---|
[8017] | 503 | in >> pb.type >> pb.bias >> pb.integerIndicator
|
---|
| 504 | >> pb.wlIndicator >> pb.discontinuityCounter;
|
---|
[6851] | 505 | phaseBiasList.append(pb);
|
---|
[6850] | 506 | }
|
---|
| 507 | }
|
---|
[4991] | 508 | else {
|
---|
[8015] | 509 | in >> numVal;
|
---|
[4991] | 510 | for (int ii = 0; ii < numVal; ii++) {
|
---|
| 511 | double dummy;
|
---|
| 512 | in >> dummy;
|
---|
| 513 | }
|
---|
| 514 | }
|
---|
[5662] | 515 | }
|
---|
[6850] | 516 |
|
---|
[3222] | 517 | struct ClockOrbit::SatData* sd = 0;
|
---|
[6877] | 518 | if (prn.system() == 'G') {
|
---|
[5666] | 519 | sd = co.Sat + co.NumberOfSat[CLOCKORBIT_SATGPS];
|
---|
| 520 | ++co.NumberOfSat[CLOCKORBIT_SATGPS];
|
---|
[3222] | 521 | }
|
---|
[6876] | 522 | else if (prn.system() == 'R') {
|
---|
[6877] | 523 | sd = co.Sat + CLOCKORBIT_NUMGPS + co.NumberOfSat[CLOCKORBIT_SATGLONASS];
|
---|
[5666] | 524 | ++co.NumberOfSat[CLOCKORBIT_SATGLONASS];
|
---|
[3222] | 525 | }
|
---|
[6876] | 526 | else if (prn.system() == 'E') {
|
---|
[6844] | 527 | sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS
|
---|
| 528 | + co.NumberOfSat[CLOCKORBIT_SATGALILEO];
|
---|
| 529 | ++co.NumberOfSat[CLOCKORBIT_SATGALILEO];
|
---|
| 530 | }
|
---|
[6876] | 531 | else if (prn.system() == 'J') {
|
---|
[6877] | 532 | sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS
|
---|
| 533 | + CLOCKORBIT_NUMGALILEO + co.NumberOfSat[CLOCKORBIT_SATQZSS];
|
---|
[6844] | 534 | ++co.NumberOfSat[CLOCKORBIT_SATQZSS];
|
---|
| 535 | }
|
---|
[6876] | 536 | else if (prn.system() == 'S') {
|
---|
[6877] | 537 | sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS
|
---|
| 538 | + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS
|
---|
[6844] | 539 | + co.NumberOfSat[CLOCKORBIT_SATSBAS];
|
---|
| 540 | ++co.NumberOfSat[CLOCKORBIT_SATSBAS];
|
---|
| 541 | }
|
---|
[6876] | 542 | else if (prn.system() == 'C') {
|
---|
[6877] | 543 | sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS
|
---|
| 544 | + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMSBAS
|
---|
[6844] | 545 | + co.NumberOfSat[CLOCKORBIT_SATBDS];
|
---|
| 546 | ++co.NumberOfSat[CLOCKORBIT_SATBDS];
|
---|
| 547 | }
|
---|
[3222] | 548 | if (sd) {
|
---|
| 549 | QString outLine;
|
---|
[8483] | 550 | processSatellite(eph, epoTime.gpsw(), epoTime.gpssec(), prnStr, rtnAPC, rtnUra,
|
---|
| 551 | rtnClk, rtnVel, rtnCoM, rtnClkSig, sd, outLine);
|
---|
[3222] | 552 | }
|
---|
[5662] | 553 |
|
---|
[6850] | 554 | // Code Biases
|
---|
| 555 | // -----------
|
---|
[5666] | 556 | struct CodeBias::BiasSat* biasSat = 0;
|
---|
[6877] | 557 | if (!codeBiases.isEmpty()) {
|
---|
| 558 | if (prn.system() == 'G') {
|
---|
| 559 | biasSat = bias.Sat + bias.NumberOfSat[CLOCKORBIT_SATGPS];
|
---|
| 560 | ++bias.NumberOfSat[CLOCKORBIT_SATGPS];
|
---|
| 561 | }
|
---|
| 562 | else if (prn.system() == 'R') {
|
---|
| 563 | biasSat = bias.Sat + CLOCKORBIT_NUMGPS
|
---|
| 564 | + bias.NumberOfSat[CLOCKORBIT_SATGLONASS];
|
---|
| 565 | ++bias.NumberOfSat[CLOCKORBIT_SATGLONASS];
|
---|
| 566 | }
|
---|
| 567 | else if (prn.system() == 'E') {
|
---|
| 568 | biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS
|
---|
| 569 | + bias.NumberOfSat[CLOCKORBIT_SATGALILEO];
|
---|
| 570 | ++bias.NumberOfSat[CLOCKORBIT_SATGALILEO];
|
---|
| 571 | }
|
---|
| 572 | else if (prn.system() == 'J') {
|
---|
| 573 | biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS
|
---|
| 574 | + CLOCKORBIT_NUMGALILEO + bias.NumberOfSat[CLOCKORBIT_SATQZSS];
|
---|
| 575 | ++bias.NumberOfSat[CLOCKORBIT_SATQZSS];
|
---|
| 576 | }
|
---|
| 577 | else if (prn.system() == 'S') {
|
---|
| 578 | biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS
|
---|
| 579 | + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS
|
---|
| 580 | + bias.NumberOfSat[CLOCKORBIT_SATSBAS];
|
---|
| 581 | ++bias.NumberOfSat[CLOCKORBIT_SATSBAS];
|
---|
| 582 | }
|
---|
| 583 | else if (prn.system() == 'C') {
|
---|
| 584 | biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS
|
---|
| 585 | + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMSBAS
|
---|
| 586 | + bias.NumberOfSat[CLOCKORBIT_SATBDS];
|
---|
| 587 | ++bias.NumberOfSat[CLOCKORBIT_SATBDS];
|
---|
| 588 | }
|
---|
[3222] | 589 | }
|
---|
[5662] | 590 |
|
---|
[3222] | 591 | if (biasSat) {
|
---|
[6876] | 592 | biasSat->ID = prn.number();
|
---|
[5503] | 593 | biasSat->NumberOfCodeBiases = 0;
|
---|
[6877] | 594 | if (prn.system() == 'G') {
|
---|
[5503] | 595 | QMapIterator<QString, double> it(codeBiases);
|
---|
| 596 | while (it.hasNext()) {
|
---|
| 597 | it.next();
|
---|
[6877] | 598 | if (it.key() == "1C") {
|
---|
| 599 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 600 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 601 | break;
|
---|
[5503] | 602 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 603 | biasSat->Biases[ii].Type = CODETYPEGPS_L1_CA;
|
---|
| 604 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 605 | }
|
---|
[8004] | 606 | else if (it.key() == "1S") {
|
---|
| 607 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 608 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 609 | break;
|
---|
| 610 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 611 | biasSat->Biases[ii].Type = CODETYPEGPS_L1C_D;
|
---|
| 612 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 613 | }
|
---|
| 614 | else if (it.key() == "1L") {
|
---|
| 615 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 616 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 617 | break;
|
---|
| 618 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 619 | biasSat->Biases[ii].Type = CODETYPEGPS_L1C_P;
|
---|
| 620 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 621 | }
|
---|
| 622 | else if (it.key() == "1X") {
|
---|
| 623 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 624 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 625 | break;
|
---|
| 626 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 627 | biasSat->Biases[ii].Type = CODETYPEGPS_L1C_DP;
|
---|
| 628 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 629 | }
|
---|
[5504] | 630 | else if (it.key() == "1P") {
|
---|
[6877] | 631 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 632 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 633 | break;
|
---|
[5503] | 634 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 635 | biasSat->Biases[ii].Type = CODETYPEGPS_L1_P;
|
---|
| 636 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 637 | }
|
---|
[5504] | 638 | else if (it.key() == "1W") {
|
---|
[6877] | 639 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 640 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 641 | break;
|
---|
[5503] | 642 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 643 | biasSat->Biases[ii].Type = CODETYPEGPS_L1_Z;
|
---|
| 644 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 645 | }
|
---|
[5504] | 646 | else if (it.key() == "2C") {
|
---|
[6877] | 647 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 648 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 649 | break;
|
---|
[5503] | 650 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 651 | biasSat->Biases[ii].Type = CODETYPEGPS_L2_CA;
|
---|
| 652 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 653 | }
|
---|
[5504] | 654 | else if (it.key() == "2D") {
|
---|
[6877] | 655 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 656 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 657 | break;
|
---|
[5503] | 658 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 659 | biasSat->Biases[ii].Type = CODETYPEGPS_SEMI_CODELESS;
|
---|
| 660 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 661 | }
|
---|
[5504] | 662 | else if (it.key() == "2S") {
|
---|
[6877] | 663 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 664 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 665 | break;
|
---|
[5503] | 666 | biasSat->NumberOfCodeBiases += 1;
|
---|
[8405] | 667 | biasSat->Biases[ii].Type = CODETYPEGPS_L2C_M;
|
---|
[5503] | 668 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 669 | }
|
---|
[5504] | 670 | else if (it.key() == "2L") {
|
---|
[6877] | 671 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 672 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 673 | break;
|
---|
[5503] | 674 | biasSat->NumberOfCodeBiases += 1;
|
---|
[8405] | 675 | biasSat->Biases[ii].Type = CODETYPEGPS_L2C_L;
|
---|
[5503] | 676 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 677 | }
|
---|
[5504] | 678 | else if (it.key() == "2X") {
|
---|
[6877] | 679 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 680 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 681 | break;
|
---|
[5503] | 682 | biasSat->NumberOfCodeBiases += 1;
|
---|
[8405] | 683 | biasSat->Biases[ii].Type = CODETYPEGPS_L2C_ML;
|
---|
[5503] | 684 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 685 | }
|
---|
[5504] | 686 | else if (it.key() == "2P") {
|
---|
[6877] | 687 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 688 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 689 | break;
|
---|
[5503] | 690 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 691 | biasSat->Biases[ii].Type = CODETYPEGPS_L2_P;
|
---|
| 692 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 693 | }
|
---|
[5510] | 694 | else if (it.key() == "2W") {
|
---|
[6877] | 695 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 696 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 697 | break;
|
---|
[5503] | 698 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 699 | biasSat->Biases[ii].Type = CODETYPEGPS_L2_Z;
|
---|
| 700 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 701 | }
|
---|
[5504] | 702 | else if (it.key() == "5I") {
|
---|
[6877] | 703 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 704 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 705 | break;
|
---|
[5503] | 706 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 707 | biasSat->Biases[ii].Type = CODETYPEGPS_L5_I;
|
---|
| 708 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 709 | }
|
---|
[5504] | 710 | else if (it.key() == "5Q") {
|
---|
[6877] | 711 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 712 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 713 | break;
|
---|
[5503] | 714 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 715 | biasSat->Biases[ii].Type = CODETYPEGPS_L5_Q;
|
---|
| 716 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 717 | }
|
---|
[6844] | 718 | else if (it.key() == "5X") {
|
---|
[6877] | 719 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 720 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 721 | break;
|
---|
[6844] | 722 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 723 | biasSat->Biases[ii].Type = CODETYPEGPS_L5_IQ;
|
---|
| 724 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 725 | }
|
---|
[5503] | 726 | }
|
---|
[3222] | 727 | }
|
---|
[6876] | 728 | else if (prn.system() == 'R') {
|
---|
[5503] | 729 | QMapIterator<QString, double> it(codeBiases);
|
---|
| 730 | while (it.hasNext()) {
|
---|
| 731 | it.next();
|
---|
[6877] | 732 | if (it.key() == "1C") {
|
---|
| 733 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 734 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 735 | break;
|
---|
[5503] | 736 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 737 | biasSat->Biases[ii].Type = CODETYPEGLONASS_L1_CA;
|
---|
| 738 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 739 | }
|
---|
[5504] | 740 | else if (it.key() == "1P") {
|
---|
[6877] | 741 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 742 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 743 | break;
|
---|
[5503] | 744 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 745 | biasSat->Biases[ii].Type = CODETYPEGLONASS_L1_P;
|
---|
| 746 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 747 | }
|
---|
[5504] | 748 | else if (it.key() == "2C") {
|
---|
[6877] | 749 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 750 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 751 | break;
|
---|
[5503] | 752 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 753 | biasSat->Biases[ii].Type = CODETYPEGLONASS_L2_CA;
|
---|
| 754 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 755 | }
|
---|
[5504] | 756 | else if (it.key() == "2P") {
|
---|
[6877] | 757 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 758 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 759 | break;
|
---|
[5503] | 760 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 761 | biasSat->Biases[ii].Type = CODETYPEGLONASS_L2_P;
|
---|
| 762 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 763 | }
|
---|
| 764 | }
|
---|
[3222] | 765 | }
|
---|
[6876] | 766 | else if (prn.system() == 'E') {
|
---|
[6844] | 767 | QMapIterator<QString, double> it(codeBiases);
|
---|
| 768 | while (it.hasNext()) {
|
---|
| 769 | it.next();
|
---|
[6877] | 770 | if (it.key() == "1A") {
|
---|
| 771 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 772 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 773 | break;
|
---|
[6844] | 774 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 775 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E1_A;
|
---|
| 776 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 777 | }
|
---|
| 778 | else if (it.key() == "1B") {
|
---|
[6877] | 779 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 780 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 781 | break;
|
---|
[6844] | 782 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 783 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E1_B;
|
---|
| 784 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 785 | }
|
---|
| 786 | else if (it.key() == "1C") {
|
---|
[6877] | 787 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 788 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 789 | break;
|
---|
[6844] | 790 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 791 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E1_C;
|
---|
| 792 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 793 | }
|
---|
[7940] | 794 | else if (it.key() == "1X") {
|
---|
| 795 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 796 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 797 | break;
|
---|
| 798 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 799 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E1_BC;
|
---|
| 800 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 801 | }
|
---|
| 802 | else if (it.key() == "1Z") {
|
---|
| 803 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 804 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 805 | break;
|
---|
| 806 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 807 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E1_ABC;
|
---|
| 808 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 809 | }
|
---|
[6844] | 810 | else if (it.key() == "5I") {
|
---|
[6877] | 811 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 812 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 813 | break;
|
---|
[6844] | 814 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 815 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E5A_I;
|
---|
| 816 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 817 | }
|
---|
| 818 | else if (it.key() == "5Q") {
|
---|
[6877] | 819 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 820 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 821 | break;
|
---|
[6844] | 822 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 823 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E5A_Q;
|
---|
| 824 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 825 | }
|
---|
[7940] | 826 | else if (it.key() == "5X") {
|
---|
| 827 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 828 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 829 | break;
|
---|
| 830 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 831 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E5A_IQ;
|
---|
| 832 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 833 | }
|
---|
[6844] | 834 | else if (it.key() == "7I") {
|
---|
[6877] | 835 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 836 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 837 | break;
|
---|
[6844] | 838 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 839 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E5B_I;
|
---|
| 840 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 841 | }
|
---|
| 842 | else if (it.key() == "7Q") {
|
---|
[6877] | 843 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 844 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 845 | break;
|
---|
[6844] | 846 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 847 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E5B_Q;
|
---|
| 848 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 849 | }
|
---|
[7940] | 850 | else if (it.key() == "7X") {
|
---|
| 851 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 852 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 853 | break;
|
---|
| 854 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 855 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E5B_IQ;
|
---|
| 856 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 857 | }
|
---|
[6844] | 858 | else if (it.key() == "8I") {
|
---|
[6877] | 859 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 860 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 861 | break;
|
---|
[6844] | 862 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 863 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E5_I;
|
---|
| 864 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 865 | }
|
---|
| 866 | else if (it.key() == "8Q") {
|
---|
[6877] | 867 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 868 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 869 | break;
|
---|
[6844] | 870 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 871 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E5_Q;
|
---|
| 872 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 873 | }
|
---|
[7940] | 874 | else if (it.key() == "8X") {
|
---|
| 875 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 876 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 877 | break;
|
---|
| 878 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 879 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E5_IQ;
|
---|
| 880 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 881 | }
|
---|
[6844] | 882 | else if (it.key() == "6A") {
|
---|
[6877] | 883 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 884 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 885 | break;
|
---|
[6844] | 886 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 887 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E6_A;
|
---|
| 888 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 889 | }
|
---|
| 890 | else if (it.key() == "6B") {
|
---|
[6877] | 891 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 892 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 893 | break;
|
---|
[6844] | 894 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 895 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E6_B;
|
---|
| 896 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 897 | }
|
---|
| 898 | else if (it.key() == "6C") {
|
---|
[6877] | 899 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 900 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 901 | break;
|
---|
[6844] | 902 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 903 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E6_C;
|
---|
| 904 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 905 | }
|
---|
[7940] | 906 | else if (it.key() == "6X") {
|
---|
| 907 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 908 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 909 | break;
|
---|
| 910 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 911 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E6_BC;
|
---|
| 912 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 913 | }
|
---|
| 914 | else if (it.key() == "6Z") {
|
---|
| 915 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 916 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 917 | break;
|
---|
| 918 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 919 | biasSat->Biases[ii].Type = CODETYPEGALILEO_E6_ABC;
|
---|
| 920 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 921 | }
|
---|
[6844] | 922 | }
|
---|
| 923 | }
|
---|
[6876] | 924 | else if (prn.system() == 'J') {
|
---|
[6844] | 925 | QMapIterator<QString, double> it(codeBiases);
|
---|
| 926 | while (it.hasNext()) {
|
---|
| 927 | it.next();
|
---|
[6877] | 928 | if (it.key() == "1C") {
|
---|
| 929 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 930 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 931 | break;
|
---|
[6844] | 932 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 933 | biasSat->Biases[ii].Type = CODETYPEQZSS_L1_CA;
|
---|
| 934 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 935 | }
|
---|
| 936 | else if (it.key() == "1S") {
|
---|
[6877] | 937 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 938 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 939 | break;
|
---|
[6844] | 940 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 941 | biasSat->Biases[ii].Type = CODETYPEQZSS_L1C_D;
|
---|
| 942 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 943 | }
|
---|
| 944 | else if (it.key() == "1L") {
|
---|
[6877] | 945 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 946 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 947 | break;
|
---|
[6844] | 948 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 949 | biasSat->Biases[ii].Type = CODETYPEQZSS_L1C_P;
|
---|
| 950 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 951 | }
|
---|
| 952 | else if (it.key() == "1X") {
|
---|
[6877] | 953 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 954 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 955 | break;
|
---|
[6844] | 956 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 957 | biasSat->Biases[ii].Type = CODETYPEQZSS_L1C_DP;
|
---|
| 958 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 959 | }
|
---|
| 960 | else if (it.key() == "2S") {
|
---|
[6877] | 961 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 962 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 963 | break;
|
---|
[6844] | 964 | biasSat->NumberOfCodeBiases += 1;
|
---|
[7940] | 965 | biasSat->Biases[ii].Type = CODETYPEQZSS_L2C_M;
|
---|
[6844] | 966 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 967 | }
|
---|
| 968 | else if (it.key() == "2L") {
|
---|
[6877] | 969 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 970 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 971 | break;
|
---|
[6844] | 972 | biasSat->NumberOfCodeBiases += 1;
|
---|
[7940] | 973 | biasSat->Biases[ii].Type = CODETYPEQZSS_L2C_L;
|
---|
[6844] | 974 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 975 | }
|
---|
| 976 | else if (it.key() == "2X") {
|
---|
[6877] | 977 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 978 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 979 | break;
|
---|
[6844] | 980 | biasSat->NumberOfCodeBiases += 1;
|
---|
[7940] | 981 | biasSat->Biases[ii].Type = CODETYPEQZSS_L2C_ML;
|
---|
[6844] | 982 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 983 | }
|
---|
| 984 | else if (it.key() == "5I") {
|
---|
[6877] | 985 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 986 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 987 | break;
|
---|
[6844] | 988 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 989 | biasSat->Biases[ii].Type = CODETYPEQZSS_L5_I;
|
---|
| 990 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 991 | }
|
---|
| 992 | else if (it.key() == "5Q") {
|
---|
[6877] | 993 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 994 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 995 | break;
|
---|
[6844] | 996 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 997 | biasSat->Biases[ii].Type = CODETYPEQZSS_L5_Q;
|
---|
| 998 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 999 | }
|
---|
| 1000 | else if (it.key() == "5X") {
|
---|
[6877] | 1001 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 1002 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1003 | break;
|
---|
[6844] | 1004 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 1005 | biasSat->Biases[ii].Type = CODETYPEQZSS_L5_IQ;
|
---|
| 1006 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 1007 | }
|
---|
| 1008 | else if (it.key() == "6S") {
|
---|
[6877] | 1009 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 1010 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1011 | break;
|
---|
[6844] | 1012 | biasSat->NumberOfCodeBiases += 1;
|
---|
[8405] | 1013 | biasSat->Biases[ii].Type = CODETYPEQZSS_L6_D;
|
---|
[6844] | 1014 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 1015 | }
|
---|
| 1016 | else if (it.key() == "6L") {
|
---|
[6877] | 1017 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 1018 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1019 | break;
|
---|
[6844] | 1020 | biasSat->NumberOfCodeBiases += 1;
|
---|
[8405] | 1021 | biasSat->Biases[ii].Type = CODETYPEQZSS_L6_P;
|
---|
[6844] | 1022 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 1023 | }
|
---|
| 1024 | else if (it.key() == "6X") {
|
---|
[6877] | 1025 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 1026 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1027 | break;
|
---|
[6844] | 1028 | biasSat->NumberOfCodeBiases += 1;
|
---|
[8405] | 1029 | biasSat->Biases[ii].Type = CODETYPEQZSS_L6_DP;
|
---|
[6844] | 1030 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 1031 | }
|
---|
| 1032 | }
|
---|
| 1033 | }
|
---|
[6876] | 1034 | else if (prn.system() == 'S') {
|
---|
[6844] | 1035 | QMapIterator<QString, double> it(codeBiases);
|
---|
| 1036 | while (it.hasNext()) {
|
---|
| 1037 | it.next();
|
---|
[6877] | 1038 | if (it.key() == "1C") {
|
---|
| 1039 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 1040 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1041 | break;
|
---|
[6844] | 1042 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 1043 | biasSat->Biases[ii].Type = CODETYPE_SBAS_L1_CA;
|
---|
| 1044 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 1045 | }
|
---|
| 1046 | else if (it.key() == "5I") {
|
---|
[6877] | 1047 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 1048 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1049 | break;
|
---|
[6844] | 1050 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 1051 | biasSat->Biases[ii].Type = CODETYPE_SBAS_L5_I;
|
---|
| 1052 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 1053 | }
|
---|
| 1054 | else if (it.key() == "5Q") {
|
---|
[6877] | 1055 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 1056 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1057 | break;
|
---|
[6844] | 1058 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 1059 | biasSat->Biases[ii].Type = CODETYPE_SBAS_L5_Q;
|
---|
| 1060 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 1061 | }
|
---|
| 1062 | else if (it.key() == "5X") {
|
---|
[6877] | 1063 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 1064 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1065 | break;
|
---|
[6844] | 1066 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 1067 | biasSat->Biases[ii].Type = CODETYPE_SBAS_L5_IQ;
|
---|
| 1068 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 1069 | }
|
---|
| 1070 | }
|
---|
| 1071 | }
|
---|
[6876] | 1072 | else if (prn.system() == 'C') {
|
---|
[6844] | 1073 | QMapIterator<QString, double> it(codeBiases);
|
---|
| 1074 | while (it.hasNext()) {
|
---|
| 1075 | it.next();
|
---|
[6877] | 1076 | if (it.key() == "2I") {
|
---|
| 1077 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 1078 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1079 | break;
|
---|
[6844] | 1080 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 1081 | biasSat->Biases[ii].Type = CODETYPE_BDS_B1_I;
|
---|
| 1082 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 1083 | }
|
---|
| 1084 | else if (it.key() == "2Q") {
|
---|
[6877] | 1085 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 1086 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1087 | break;
|
---|
[6844] | 1088 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 1089 | biasSat->Biases[ii].Type = CODETYPE_BDS_B1_Q;
|
---|
| 1090 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 1091 | }
|
---|
| 1092 | else if (it.key() == "2X") {
|
---|
[6877] | 1093 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 1094 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1095 | break;
|
---|
[6844] | 1096 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 1097 | biasSat->Biases[ii].Type = CODETYPE_BDS_B1_IQ;
|
---|
| 1098 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 1099 | }
|
---|
| 1100 | else if (it.key() == "6I") {
|
---|
[6877] | 1101 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 1102 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1103 | break;
|
---|
[6844] | 1104 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 1105 | biasSat->Biases[ii].Type = CODETYPE_BDS_B3_I;
|
---|
| 1106 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 1107 | }
|
---|
| 1108 | else if (it.key() == "6Q") {
|
---|
[6877] | 1109 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 1110 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1111 | break;
|
---|
[6844] | 1112 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 1113 | biasSat->Biases[ii].Type = CODETYPE_BDS_B3_Q;
|
---|
| 1114 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 1115 | }
|
---|
| 1116 | else if (it.key() == "6X") {
|
---|
[6877] | 1117 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 1118 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1119 | break;
|
---|
[6844] | 1120 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 1121 | biasSat->Biases[ii].Type = CODETYPE_BDS_B3_IQ;
|
---|
| 1122 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 1123 | }
|
---|
| 1124 | else if (it.key() == "7I") {
|
---|
[6877] | 1125 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 1126 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1127 | break;
|
---|
[6844] | 1128 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 1129 | biasSat->Biases[ii].Type = CODETYPE_BDS_B2_I;
|
---|
| 1130 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 1131 | }
|
---|
| 1132 | else if (it.key() == "7Q") {
|
---|
[6877] | 1133 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 1134 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1135 | break;
|
---|
[6844] | 1136 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 1137 | biasSat->Biases[ii].Type = CODETYPE_BDS_B2_Q;
|
---|
| 1138 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 1139 | }
|
---|
| 1140 | else if (it.key() == "7X") {
|
---|
[6877] | 1141 | int ii = biasSat->NumberOfCodeBiases;
|
---|
| 1142 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1143 | break;
|
---|
[6844] | 1144 | biasSat->NumberOfCodeBiases += 1;
|
---|
| 1145 | biasSat->Biases[ii].Type = CODETYPE_BDS_B2_IQ;
|
---|
| 1146 | biasSat->Biases[ii].Bias = it.value();
|
---|
| 1147 | }
|
---|
| 1148 | }
|
---|
| 1149 | }
|
---|
[3222] | 1150 | }
|
---|
[6850] | 1151 | // Phase Biases
|
---|
| 1152 | // ------------
|
---|
| 1153 | struct PhaseBias::PhaseBiasSat* phasebiasSat = 0;
|
---|
[6877] | 1154 | if (!phaseBiasList.isEmpty()) {
|
---|
| 1155 | if (prn.system() == 'G') {
|
---|
| 1156 | phasebiasSat = phasebias.Sat
|
---|
| 1157 | + phasebias.NumberOfSat[CLOCKORBIT_SATGPS];
|
---|
| 1158 | ++phasebias.NumberOfSat[CLOCKORBIT_SATGPS];
|
---|
| 1159 | }
|
---|
| 1160 | else if (prn.system() == 'R') {
|
---|
| 1161 | phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS
|
---|
| 1162 | + phasebias.NumberOfSat[CLOCKORBIT_SATGLONASS];
|
---|
| 1163 | ++phasebias.NumberOfSat[CLOCKORBIT_SATGLONASS];
|
---|
| 1164 | }
|
---|
| 1165 | else if (prn.system() == 'E') {
|
---|
| 1166 | phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS
|
---|
| 1167 | + CLOCKORBIT_NUMGLONASS
|
---|
| 1168 | + phasebias.NumberOfSat[CLOCKORBIT_SATGALILEO];
|
---|
| 1169 | ++phasebias.NumberOfSat[CLOCKORBIT_SATGALILEO];
|
---|
| 1170 | }
|
---|
| 1171 | else if (prn.system() == 'J') {
|
---|
| 1172 | phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS
|
---|
| 1173 | + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO
|
---|
| 1174 | + phasebias.NumberOfSat[CLOCKORBIT_SATQZSS];
|
---|
| 1175 | ++phasebias.NumberOfSat[CLOCKORBIT_SATQZSS];
|
---|
| 1176 | }
|
---|
| 1177 | else if (prn.system() == 'S') {
|
---|
| 1178 | phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS
|
---|
| 1179 | + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO
|
---|
| 1180 | + CLOCKORBIT_NUMQZSS + phasebias.NumberOfSat[CLOCKORBIT_SATSBAS];
|
---|
| 1181 | ++phasebias.NumberOfSat[CLOCKORBIT_SATSBAS];
|
---|
| 1182 | }
|
---|
| 1183 | else if (prn.system() == 'C') {
|
---|
| 1184 | phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS
|
---|
| 1185 | + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO
|
---|
| 1186 | + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMSBAS
|
---|
| 1187 | + phasebias.NumberOfSat[CLOCKORBIT_SATBDS];
|
---|
| 1188 | ++phasebias.NumberOfSat[CLOCKORBIT_SATBDS];
|
---|
| 1189 | }
|
---|
[6850] | 1190 | }
|
---|
| 1191 |
|
---|
| 1192 | if (phasebiasSat) {
|
---|
[8017] | 1193 | phasebias.DispersiveBiasConsistencyIndicator = dispersiveBiasConsistenyIndicator;
|
---|
| 1194 | phasebias.MWConsistencyIndicator = mwConsistencyIndicator;
|
---|
[6876] | 1195 | phasebiasSat->ID = prn.number();
|
---|
[6850] | 1196 | phasebiasSat->NumberOfPhaseBiases = 0;
|
---|
[8017] | 1197 | phasebiasSat->YawAngle = pbSat.yawAngle;
|
---|
| 1198 | phasebiasSat->YawRate = pbSat.yawRate;
|
---|
[6877] | 1199 | if (prn.system() == 'G') {
|
---|
[6851] | 1200 | QListIterator<phaseBiasSignal> it(phaseBiasList);
|
---|
[6850] | 1201 | while (it.hasNext()) {
|
---|
[6851] | 1202 | const phaseBiasSignal &pbSig = it.next();
|
---|
[6877] | 1203 | if (pbSig.type == "1C") {
|
---|
| 1204 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1205 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1206 | break;
|
---|
[6850] | 1207 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1208 | phasebiasSat->Biases[ii].Type = CODETYPEGPS_L1_CA;
|
---|
[6851] | 1209 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1210 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1211 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1212 | pbSig.wlIndicator;
|
---|
[6877] | 1213 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1214 | pbSig.discontinuityCounter;
|
---|
[6850] | 1215 | }
|
---|
[8004] | 1216 | else if (pbSig.type == "1S") {
|
---|
| 1217 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1218 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1219 | break;
|
---|
| 1220 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1221 | phasebiasSat->Biases[ii].Type = CODETYPEGPS_L1C_D;
|
---|
| 1222 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1223 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[8004] | 1224 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1225 | pbSig.wlIndicator;
|
---|
[8004] | 1226 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1227 | pbSig.discontinuityCounter;
|
---|
[8004] | 1228 | }
|
---|
| 1229 | else if (pbSig.type == "1L") {
|
---|
| 1230 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1231 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1232 | break;
|
---|
| 1233 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1234 | phasebiasSat->Biases[ii].Type = CODETYPEGPS_L1C_P;
|
---|
| 1235 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1236 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[8004] | 1237 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1238 | pbSig.wlIndicator;
|
---|
[8004] | 1239 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1240 | pbSig.discontinuityCounter;
|
---|
[8004] | 1241 | }
|
---|
| 1242 | else if (pbSig.type == "1X") {
|
---|
| 1243 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1244 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1245 | break;
|
---|
| 1246 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1247 | phasebiasSat->Biases[ii].Type = CODETYPEGPS_L1C_P;
|
---|
| 1248 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1249 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[8004] | 1250 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1251 | pbSig.wlIndicator;
|
---|
[8004] | 1252 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1253 | pbSig.discontinuityCounter;
|
---|
[8004] | 1254 | }
|
---|
[6851] | 1255 | else if (pbSig.type == "1P") {
|
---|
[6877] | 1256 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1257 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1258 | break;
|
---|
[6850] | 1259 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1260 | phasebiasSat->Biases[ii].Type = CODETYPEGPS_L1_P;
|
---|
[6851] | 1261 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1262 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1263 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1264 | pbSig.wlIndicator;
|
---|
[6877] | 1265 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1266 | pbSig.discontinuityCounter;
|
---|
[6850] | 1267 | }
|
---|
[6851] | 1268 | else if (pbSig.type == "1W") {
|
---|
[6877] | 1269 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1270 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1271 | break;
|
---|
[6850] | 1272 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1273 | phasebiasSat->Biases[ii].Type = CODETYPEGPS_L1_Z;
|
---|
[6851] | 1274 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1275 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1276 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1277 | pbSig.wlIndicator;
|
---|
[6877] | 1278 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1279 | pbSig.discontinuityCounter;
|
---|
[6850] | 1280 | }
|
---|
[6851] | 1281 | else if (pbSig.type == "2C") {
|
---|
[6877] | 1282 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1283 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1284 | break;
|
---|
[6850] | 1285 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1286 | phasebiasSat->Biases[ii].Type = CODETYPEGPS_L2_CA;
|
---|
[6851] | 1287 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1288 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1289 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1290 | pbSig.wlIndicator;
|
---|
[6877] | 1291 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1292 | pbSig.discontinuityCounter;
|
---|
[6850] | 1293 | }
|
---|
[6851] | 1294 | else if (pbSig.type == "2D") {
|
---|
[6877] | 1295 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1296 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1297 | break;
|
---|
[6850] | 1298 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1299 | phasebiasSat->Biases[ii].Type = CODETYPEGPS_SEMI_CODELESS;
|
---|
[6851] | 1300 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1301 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1302 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1303 | pbSig.wlIndicator;
|
---|
[6877] | 1304 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1305 | pbSig.discontinuityCounter;
|
---|
[6850] | 1306 | }
|
---|
[6851] | 1307 | else if (pbSig.type == "2S") {
|
---|
[6877] | 1308 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1309 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1310 | break;
|
---|
[6850] | 1311 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
[8405] | 1312 | phasebiasSat->Biases[ii].Type = CODETYPEGPS_L2C_M;
|
---|
[6851] | 1313 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1314 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1315 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1316 | pbSig.wlIndicator;
|
---|
[6877] | 1317 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1318 | pbSig.discontinuityCounter;
|
---|
[6850] | 1319 | }
|
---|
[6851] | 1320 | else if (pbSig.type == "2L") {
|
---|
[6877] | 1321 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1322 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1323 | break;
|
---|
[6850] | 1324 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
[8405] | 1325 | phasebiasSat->Biases[ii].Type = CODETYPEGPS_L2C_L;
|
---|
[6851] | 1326 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1327 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1328 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1329 | pbSig.wlIndicator;
|
---|
[6877] | 1330 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1331 | pbSig.discontinuityCounter;
|
---|
[6850] | 1332 | }
|
---|
[6851] | 1333 | else if (pbSig.type == "2X") {
|
---|
[6877] | 1334 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1335 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1336 | break;
|
---|
[6850] | 1337 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
[8405] | 1338 | phasebiasSat->Biases[ii].Type = CODETYPEGPS_L2C_ML;
|
---|
[6851] | 1339 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1340 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1341 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1342 | pbSig.wlIndicator;
|
---|
[6877] | 1343 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1344 | pbSig.discontinuityCounter;
|
---|
[6850] | 1345 | }
|
---|
[6851] | 1346 | else if (pbSig.type == "2P") {
|
---|
[6877] | 1347 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1348 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1349 | break;
|
---|
[6850] | 1350 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1351 | phasebiasSat->Biases[ii].Type = CODETYPEGPS_L2_P;
|
---|
[6851] | 1352 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1353 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1354 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1355 | pbSig.wlIndicator;
|
---|
[6877] | 1356 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1357 | pbSig.discontinuityCounter;
|
---|
[6850] | 1358 | }
|
---|
[6851] | 1359 | else if (pbSig.type == "2W") {
|
---|
[6877] | 1360 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1361 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1362 | break;
|
---|
[6850] | 1363 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1364 | phasebiasSat->Biases[ii].Type = CODETYPEGPS_L2_Z;
|
---|
[6851] | 1365 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1366 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1367 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1368 | pbSig.wlIndicator;
|
---|
[6877] | 1369 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1370 | pbSig.discontinuityCounter;
|
---|
[6850] | 1371 | }
|
---|
[6851] | 1372 | else if (pbSig.type == "5I") {
|
---|
[6877] | 1373 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1374 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1375 | break;
|
---|
[6850] | 1376 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1377 | phasebiasSat->Biases[ii].Type = CODETYPEGPS_L5_I;
|
---|
[6851] | 1378 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1379 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1380 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1381 | pbSig.wlIndicator;
|
---|
[6877] | 1382 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1383 | pbSig.discontinuityCounter;
|
---|
[6850] | 1384 | }
|
---|
[6851] | 1385 | else if (pbSig.type == "5Q") {
|
---|
[6877] | 1386 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1387 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1388 | break;
|
---|
[6850] | 1389 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1390 | phasebiasSat->Biases[ii].Type = CODETYPEGPS_L5_Q;
|
---|
[6851] | 1391 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1392 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1393 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1394 | pbSig.wlIndicator;
|
---|
[6877] | 1395 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1396 | pbSig.discontinuityCounter;
|
---|
[6850] | 1397 | }
|
---|
[6851] | 1398 | else if (pbSig.type == "5X") {
|
---|
[6877] | 1399 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1400 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1401 | break;
|
---|
[6850] | 1402 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1403 | phasebiasSat->Biases[ii].Type = CODETYPEGPS_L5_IQ;
|
---|
[6851] | 1404 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1405 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1406 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1407 | pbSig.wlIndicator;
|
---|
[6877] | 1408 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1409 | pbSig.discontinuityCounter;
|
---|
[6850] | 1410 | }
|
---|
| 1411 | }
|
---|
| 1412 | }
|
---|
[6877] | 1413 | if (prn.system() == 'R') {
|
---|
[6851] | 1414 | QListIterator<phaseBiasSignal> it(phaseBiasList);
|
---|
[6850] | 1415 | while (it.hasNext()) {
|
---|
[6851] | 1416 | const phaseBiasSignal &pbSig = it.next();
|
---|
[6877] | 1417 | if (pbSig.type == "1C") {
|
---|
| 1418 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1419 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1420 | break;
|
---|
[6850] | 1421 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1422 | phasebiasSat->Biases[ii].Type = CODETYPEGLONASS_L1_CA;
|
---|
[6851] | 1423 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1424 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1425 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1426 | pbSig.wlIndicator;
|
---|
[6877] | 1427 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1428 | pbSig.discontinuityCounter;
|
---|
[6850] | 1429 | }
|
---|
[6851] | 1430 | else if (pbSig.type == "1P") {
|
---|
[6877] | 1431 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1432 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1433 | break;
|
---|
[6850] | 1434 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1435 | phasebiasSat->Biases[ii].Type = CODETYPEGLONASS_L1_P;
|
---|
[6851] | 1436 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1437 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1438 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1439 | pbSig.wlIndicator;
|
---|
[6877] | 1440 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1441 | pbSig.discontinuityCounter;
|
---|
[6850] | 1442 | }
|
---|
[6851] | 1443 | else if (pbSig.type == "2C") {
|
---|
[6877] | 1444 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1445 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1446 | break;
|
---|
[6850] | 1447 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1448 | phasebiasSat->Biases[ii].Type = CODETYPEGLONASS_L2_CA;
|
---|
[6851] | 1449 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1450 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1451 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1452 | pbSig.wlIndicator;
|
---|
[6877] | 1453 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1454 | pbSig.discontinuityCounter;
|
---|
[6850] | 1455 | }
|
---|
[6851] | 1456 | else if (pbSig.type == "2P") {
|
---|
[6877] | 1457 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1458 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1459 | break;
|
---|
[6850] | 1460 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1461 | phasebiasSat->Biases[ii].Type = CODETYPEGLONASS_L2_P;
|
---|
[6851] | 1462 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1463 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1464 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1465 | pbSig.wlIndicator;
|
---|
[6877] | 1466 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1467 | pbSig.discontinuityCounter;
|
---|
[6850] | 1468 | }
|
---|
| 1469 | }
|
---|
| 1470 | }
|
---|
[6877] | 1471 | if (prn.system() == 'E') {
|
---|
[6851] | 1472 | QListIterator<phaseBiasSignal> it(phaseBiasList);
|
---|
[6850] | 1473 | while (it.hasNext()) {
|
---|
[6851] | 1474 | const phaseBiasSignal &pbSig = it.next();
|
---|
[6877] | 1475 | if (pbSig.type == "1A") {
|
---|
| 1476 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1477 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1478 | break;
|
---|
[6850] | 1479 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1480 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E1_A;
|
---|
[6851] | 1481 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1482 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1483 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1484 | pbSig.wlIndicator;
|
---|
[6877] | 1485 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1486 | pbSig.discontinuityCounter;
|
---|
[6850] | 1487 | }
|
---|
[6851] | 1488 | else if (pbSig.type == "1B") {
|
---|
[6877] | 1489 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1490 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1491 | break;
|
---|
[6850] | 1492 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1493 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E1_B;
|
---|
[6851] | 1494 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1495 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1496 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1497 | pbSig.wlIndicator;
|
---|
[6877] | 1498 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1499 | pbSig.discontinuityCounter;
|
---|
[6850] | 1500 | }
|
---|
[6851] | 1501 | else if (pbSig.type == "1C") {
|
---|
[6877] | 1502 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1503 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1504 | break;
|
---|
[6850] | 1505 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1506 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E1_C;
|
---|
[6851] | 1507 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1508 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1509 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1510 | pbSig.wlIndicator;
|
---|
[6877] | 1511 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1512 | pbSig.discontinuityCounter;
|
---|
[6850] | 1513 | }
|
---|
[7940] | 1514 | else if (pbSig.type == "1X") {
|
---|
| 1515 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1516 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1517 | break;
|
---|
| 1518 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1519 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E1_BC;
|
---|
| 1520 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1521 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[7940] | 1522 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1523 | pbSig.wlIndicator;
|
---|
[7940] | 1524 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1525 | pbSig.discontinuityCounter;
|
---|
[7940] | 1526 | }
|
---|
| 1527 | else if (pbSig.type == "1Z") {
|
---|
| 1528 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1529 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1530 | break;
|
---|
| 1531 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1532 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E1_ABC;
|
---|
| 1533 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1534 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[7940] | 1535 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1536 | pbSig.wlIndicator;
|
---|
[7940] | 1537 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1538 | pbSig.discontinuityCounter;
|
---|
[7940] | 1539 | }
|
---|
[6851] | 1540 | else if (pbSig.type == "5I") {
|
---|
[6877] | 1541 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1542 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1543 | break;
|
---|
[6850] | 1544 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1545 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E5A_I;
|
---|
[6851] | 1546 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1547 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1548 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1549 | pbSig.wlIndicator;
|
---|
[6877] | 1550 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1551 | pbSig.discontinuityCounter;
|
---|
[6850] | 1552 | }
|
---|
[6851] | 1553 | else if (pbSig.type == "5Q") {
|
---|
[6877] | 1554 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1555 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1556 | break;
|
---|
[6850] | 1557 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1558 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E5A_Q;
|
---|
[6851] | 1559 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1560 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1561 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1562 | pbSig.wlIndicator;
|
---|
[6877] | 1563 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1564 | pbSig.discontinuityCounter;
|
---|
[6850] | 1565 | }
|
---|
[7940] | 1566 | else if (pbSig.type == "5X") {
|
---|
| 1567 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1568 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1569 | break;
|
---|
| 1570 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1571 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E5A_IQ;
|
---|
| 1572 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1573 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[7940] | 1574 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1575 | pbSig.wlIndicator;
|
---|
[7940] | 1576 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1577 | pbSig.discontinuityCounter;
|
---|
[7940] | 1578 | }
|
---|
[6851] | 1579 | else if (pbSig.type == "7I") {
|
---|
[6877] | 1580 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1581 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1582 | break;
|
---|
[6850] | 1583 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1584 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E5B_I;
|
---|
[6851] | 1585 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1586 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1587 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1588 | pbSig.wlIndicator;
|
---|
[6877] | 1589 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1590 | pbSig.discontinuityCounter;
|
---|
[6850] | 1591 | }
|
---|
[6851] | 1592 | else if (pbSig.type == "7Q") {
|
---|
[6877] | 1593 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1594 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1595 | break;
|
---|
[6850] | 1596 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1597 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E5B_Q;
|
---|
[6851] | 1598 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1599 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1600 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1601 | pbSig.wlIndicator;
|
---|
[6877] | 1602 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1603 | pbSig.discontinuityCounter;
|
---|
[6850] | 1604 | }
|
---|
[7940] | 1605 | else if (pbSig.type == "7X") {
|
---|
| 1606 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1607 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1608 | break;
|
---|
| 1609 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1610 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E5B_IQ;
|
---|
| 1611 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1612 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[7940] | 1613 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1614 | pbSig.wlIndicator;
|
---|
[7940] | 1615 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1616 | pbSig.discontinuityCounter;
|
---|
[7940] | 1617 | }
|
---|
[6851] | 1618 | else if (pbSig.type == "8I") {
|
---|
[6877] | 1619 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1620 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1621 | break;
|
---|
[6850] | 1622 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1623 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E5_I;
|
---|
[6851] | 1624 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1625 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1626 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1627 | pbSig.wlIndicator;
|
---|
[6877] | 1628 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1629 | pbSig.discontinuityCounter;
|
---|
[6850] | 1630 | }
|
---|
[6851] | 1631 | else if (pbSig.type == "8Q") {
|
---|
[6877] | 1632 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1633 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1634 | break;
|
---|
[6850] | 1635 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1636 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E5_Q;
|
---|
[6851] | 1637 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1638 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1639 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1640 | pbSig.wlIndicator;
|
---|
[6877] | 1641 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1642 | pbSig.discontinuityCounter;
|
---|
[6850] | 1643 | }
|
---|
[7940] | 1644 | else if (pbSig.type == "8X") {
|
---|
| 1645 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1646 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1647 | break;
|
---|
| 1648 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1649 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E5_IQ;
|
---|
| 1650 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1651 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[7940] | 1652 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1653 | pbSig.wlIndicator;
|
---|
[7940] | 1654 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1655 | pbSig.discontinuityCounter;
|
---|
[7940] | 1656 | }
|
---|
[6851] | 1657 | else if (pbSig.type == "6A") {
|
---|
[6877] | 1658 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1659 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1660 | break;
|
---|
[6850] | 1661 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1662 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E6_A;
|
---|
[6851] | 1663 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1664 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1665 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1666 | pbSig.wlIndicator;
|
---|
[6877] | 1667 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1668 | pbSig.discontinuityCounter;
|
---|
[6850] | 1669 | }
|
---|
[6851] | 1670 | else if (pbSig.type == "6B") {
|
---|
[6877] | 1671 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1672 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1673 | break;
|
---|
[6850] | 1674 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1675 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E6_B;
|
---|
[6851] | 1676 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1677 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1678 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1679 | pbSig.wlIndicator;
|
---|
[6877] | 1680 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1681 | pbSig.discontinuityCounter;
|
---|
[6850] | 1682 | }
|
---|
[6851] | 1683 | else if (pbSig.type == "6C") {
|
---|
[6877] | 1684 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1685 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1686 | break;
|
---|
[6850] | 1687 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1688 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E6_C;
|
---|
[6851] | 1689 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1690 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1691 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1692 | pbSig.wlIndicator;
|
---|
[6877] | 1693 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1694 | pbSig.discontinuityCounter;
|
---|
[6850] | 1695 | }
|
---|
[7940] | 1696 | else if (pbSig.type == "6X") {
|
---|
| 1697 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1698 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1699 | break;
|
---|
| 1700 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1701 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E6_BC;
|
---|
| 1702 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1703 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[7940] | 1704 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1705 | pbSig.wlIndicator;
|
---|
[7940] | 1706 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1707 | pbSig.discontinuityCounter;
|
---|
[7940] | 1708 | }
|
---|
| 1709 | else if (pbSig.type == "6Z") {
|
---|
| 1710 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1711 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1712 | break;
|
---|
| 1713 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1714 | phasebiasSat->Biases[ii].Type = CODETYPEGALILEO_E6_ABC;
|
---|
| 1715 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1716 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[7940] | 1717 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1718 | pbSig.wlIndicator;
|
---|
[7940] | 1719 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1720 | pbSig.discontinuityCounter;
|
---|
[7940] | 1721 | }
|
---|
[6850] | 1722 | }
|
---|
| 1723 | }
|
---|
[6877] | 1724 | if (prn.system() == 'J') {
|
---|
[6851] | 1725 | QListIterator<phaseBiasSignal> it(phaseBiasList);
|
---|
[6850] | 1726 | while (it.hasNext()) {
|
---|
[6851] | 1727 | const phaseBiasSignal &pbSig = it.next();
|
---|
[6877] | 1728 | if (pbSig.type == "1C") {
|
---|
| 1729 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1730 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1731 | break;
|
---|
[6850] | 1732 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1733 | phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L1_CA;
|
---|
[6851] | 1734 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1735 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1736 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1737 | pbSig.wlIndicator;
|
---|
[6877] | 1738 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1739 | pbSig.discontinuityCounter;
|
---|
[6850] | 1740 | }
|
---|
[6851] | 1741 | else if (pbSig.type == "1S") {
|
---|
[6877] | 1742 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1743 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1744 | break;
|
---|
[6850] | 1745 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1746 | phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L1C_D;
|
---|
[6851] | 1747 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1748 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1749 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1750 | pbSig.wlIndicator;
|
---|
[6877] | 1751 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1752 | pbSig.discontinuityCounter;
|
---|
[6850] | 1753 | }
|
---|
[6851] | 1754 | else if (pbSig.type == "1L") {
|
---|
[6877] | 1755 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1756 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1757 | break;
|
---|
[6850] | 1758 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1759 | phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L1C_P;
|
---|
[6851] | 1760 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1761 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1762 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1763 | pbSig.wlIndicator;
|
---|
[6877] | 1764 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1765 | pbSig.discontinuityCounter;
|
---|
[6850] | 1766 | }
|
---|
[6851] | 1767 | else if (pbSig.type == "1X") {
|
---|
[6877] | 1768 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1769 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1770 | break;
|
---|
[6850] | 1771 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1772 | phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L1C_DP;
|
---|
[6851] | 1773 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1774 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1775 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1776 | pbSig.wlIndicator;
|
---|
[6877] | 1777 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1778 | pbSig.discontinuityCounter;
|
---|
[6850] | 1779 | }
|
---|
[6851] | 1780 | else if (pbSig.type == "2S") {
|
---|
[6877] | 1781 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1782 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1783 | break;
|
---|
[6850] | 1784 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
[7940] | 1785 | phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L2C_M;
|
---|
[6851] | 1786 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1787 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1788 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1789 | pbSig.wlIndicator;
|
---|
[6877] | 1790 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1791 | pbSig.discontinuityCounter;
|
---|
[6850] | 1792 | }
|
---|
[6851] | 1793 | else if (pbSig.type == "2L") {
|
---|
[6877] | 1794 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1795 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1796 | break;
|
---|
[6850] | 1797 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
[7940] | 1798 | phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L2C_L;
|
---|
[6851] | 1799 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1800 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1801 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1802 | pbSig.wlIndicator;
|
---|
[6877] | 1803 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1804 | pbSig.discontinuityCounter;
|
---|
[6850] | 1805 | }
|
---|
[6851] | 1806 | else if (pbSig.type == "2X") {
|
---|
[6877] | 1807 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1808 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1809 | break;
|
---|
[6850] | 1810 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
[7940] | 1811 | phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L2C_ML;
|
---|
[6851] | 1812 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1813 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1814 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1815 | pbSig.wlIndicator;
|
---|
[6877] | 1816 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1817 | pbSig.discontinuityCounter;
|
---|
[6850] | 1818 | }
|
---|
[6851] | 1819 | else if (pbSig.type == "5I") {
|
---|
[6877] | 1820 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1821 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1822 | break;
|
---|
[6850] | 1823 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1824 | phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L5_I;
|
---|
[6851] | 1825 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1826 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1827 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1828 | pbSig.wlIndicator;
|
---|
[6877] | 1829 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1830 | pbSig.discontinuityCounter;
|
---|
[6850] | 1831 | }
|
---|
[6851] | 1832 | else if (pbSig.type == "5Q") {
|
---|
[6877] | 1833 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1834 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1835 | break;
|
---|
[6850] | 1836 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1837 | phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L5_Q;
|
---|
[6851] | 1838 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1839 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1840 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1841 | pbSig.wlIndicator;
|
---|
[6877] | 1842 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1843 | pbSig.discontinuityCounter;
|
---|
[6850] | 1844 | }
|
---|
[6851] | 1845 | else if (pbSig.type == "5X") {
|
---|
[6877] | 1846 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1847 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1848 | break;
|
---|
[6850] | 1849 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1850 | phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L5_IQ;
|
---|
[6851] | 1851 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1852 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1853 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1854 | pbSig.wlIndicator;
|
---|
[6877] | 1855 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1856 | pbSig.discontinuityCounter;
|
---|
[6850] | 1857 | }
|
---|
[6851] | 1858 | else if (pbSig.type == "6S") {
|
---|
[6877] | 1859 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1860 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1861 | break;
|
---|
[6850] | 1862 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
[8405] | 1863 | phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L6_D;
|
---|
[6851] | 1864 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1865 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1866 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1867 | pbSig.wlIndicator;
|
---|
[6877] | 1868 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1869 | pbSig.discontinuityCounter;
|
---|
[6850] | 1870 | }
|
---|
[6851] | 1871 | else if (pbSig.type == "6L") {
|
---|
[6877] | 1872 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1873 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1874 | break;
|
---|
[6850] | 1875 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
[8405] | 1876 | phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L6_P;
|
---|
[6851] | 1877 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1878 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1879 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1880 | pbSig.wlIndicator;
|
---|
[6877] | 1881 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1882 | pbSig.discontinuityCounter;
|
---|
[6850] | 1883 | }
|
---|
[6851] | 1884 | else if (pbSig.type == "6X") {
|
---|
[6877] | 1885 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1886 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1887 | break;
|
---|
[6850] | 1888 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
[8405] | 1889 | phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L6_DP;
|
---|
[6851] | 1890 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1891 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1892 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1893 | pbSig.wlIndicator;
|
---|
[6877] | 1894 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1895 | pbSig.discontinuityCounter;
|
---|
[6850] | 1896 | }
|
---|
| 1897 | }
|
---|
| 1898 | }
|
---|
[6877] | 1899 | if (prn.system() == 'S') {
|
---|
[6851] | 1900 | QListIterator<phaseBiasSignal> it(phaseBiasList);
|
---|
[6850] | 1901 | while (it.hasNext()) {
|
---|
[6851] | 1902 | const phaseBiasSignal &pbSig = it.next();
|
---|
[6877] | 1903 | if (pbSig.type == "1C") {
|
---|
| 1904 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1905 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1906 | break;
|
---|
[6850] | 1907 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1908 | phasebiasSat->Biases[ii].Type = CODETYPE_SBAS_L1_CA;
|
---|
[6851] | 1909 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1910 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1911 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1912 | pbSig.wlIndicator;
|
---|
[6877] | 1913 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1914 | pbSig.discontinuityCounter;
|
---|
[6850] | 1915 | }
|
---|
[6851] | 1916 | else if (pbSig.type == "5I") {
|
---|
[6877] | 1917 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1918 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1919 | break;
|
---|
[6850] | 1920 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1921 | phasebiasSat->Biases[ii].Type = CODETYPE_SBAS_L5_I;
|
---|
[6851] | 1922 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1923 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1924 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1925 | pbSig.wlIndicator;
|
---|
[6877] | 1926 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1927 | pbSig.discontinuityCounter;
|
---|
[6850] | 1928 | }
|
---|
[6851] | 1929 | else if (pbSig.type == "5Q") {
|
---|
[6877] | 1930 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1931 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1932 | break;
|
---|
[6850] | 1933 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1934 | phasebiasSat->Biases[ii].Type = CODETYPE_SBAS_L5_Q;
|
---|
[6851] | 1935 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1936 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1937 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1938 | pbSig.wlIndicator;
|
---|
[6877] | 1939 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1940 | pbSig.discontinuityCounter;
|
---|
[6850] | 1941 | }
|
---|
[6851] | 1942 | else if (pbSig.type == "5X") {
|
---|
[6877] | 1943 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1944 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1945 | break;
|
---|
[6850] | 1946 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1947 | phasebiasSat->Biases[ii].Type = CODETYPE_SBAS_L5_IQ;
|
---|
[6851] | 1948 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1949 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1950 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1951 | pbSig.wlIndicator;
|
---|
[6877] | 1952 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1953 | pbSig.discontinuityCounter;
|
---|
[6850] | 1954 | }
|
---|
| 1955 | }
|
---|
| 1956 | }
|
---|
[6877] | 1957 | if (prn.system() == 'C') {
|
---|
[6851] | 1958 | QListIterator<phaseBiasSignal> it(phaseBiasList);
|
---|
[6850] | 1959 | while (it.hasNext()) {
|
---|
[6851] | 1960 | const phaseBiasSignal &pbSig = it.next();
|
---|
[6877] | 1961 | if (pbSig.type == "2I") {
|
---|
| 1962 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1963 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1964 | break;
|
---|
[6850] | 1965 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1966 | phasebiasSat->Biases[ii].Type = CODETYPE_BDS_B1_I;
|
---|
[6851] | 1967 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1968 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1969 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1970 | pbSig.wlIndicator;
|
---|
[6877] | 1971 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1972 | pbSig.discontinuityCounter;
|
---|
[6850] | 1973 | }
|
---|
[6851] | 1974 | else if (pbSig.type == "2Q") {
|
---|
[6877] | 1975 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1976 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1977 | break;
|
---|
[6850] | 1978 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1979 | phasebiasSat->Biases[ii].Type = CODETYPE_BDS_B1_Q;
|
---|
[6851] | 1980 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1981 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1982 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1983 | pbSig.wlIndicator;
|
---|
[6877] | 1984 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1985 | pbSig.discontinuityCounter;
|
---|
[6850] | 1986 | }
|
---|
[6851] | 1987 | else if (pbSig.type == "2X") {
|
---|
[6877] | 1988 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 1989 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 1990 | break;
|
---|
[6850] | 1991 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
| 1992 | phasebiasSat->Biases[ii].Type = CODETYPE_BDS_B1_IQ;
|
---|
[6851] | 1993 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 1994 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 1995 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 1996 | pbSig.wlIndicator;
|
---|
[6877] | 1997 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 1998 | pbSig.discontinuityCounter;
|
---|
[6850] | 1999 | }
|
---|
[6851] | 2000 | else if (pbSig.type == "6I") {
|
---|
[6877] | 2001 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 2002 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 2003 | break;
|
---|
[6850] | 2004 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
[7781] | 2005 | phasebiasSat->Biases[ii].Type = CODETYPE_BDS_B3_I;
|
---|
[6851] | 2006 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 2007 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 2008 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 2009 | pbSig.wlIndicator;
|
---|
[6877] | 2010 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 2011 | pbSig.discontinuityCounter;
|
---|
[6850] | 2012 | }
|
---|
[6851] | 2013 | else if (pbSig.type == "6Q") {
|
---|
[6877] | 2014 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 2015 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 2016 | break;
|
---|
[6850] | 2017 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
[7781] | 2018 | phasebiasSat->Biases[ii].Type = CODETYPE_BDS_B3_Q;
|
---|
[6851] | 2019 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 2020 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 2021 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 2022 | pbSig.wlIndicator;
|
---|
[6877] | 2023 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 2024 | pbSig.discontinuityCounter;
|
---|
[6850] | 2025 | }
|
---|
[6851] | 2026 | else if (pbSig.type == "6X") {
|
---|
[6877] | 2027 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 2028 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 2029 | break;
|
---|
[6850] | 2030 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
[7774] | 2031 | phasebiasSat->Biases[ii].Type = CODETYPE_BDS_B3_IQ;
|
---|
[6851] | 2032 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 2033 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 2034 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 2035 | pbSig.wlIndicator;
|
---|
[6877] | 2036 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 2037 | pbSig.discontinuityCounter;
|
---|
[6850] | 2038 | }
|
---|
[6851] | 2039 | else if (pbSig.type == "7I") {
|
---|
[6877] | 2040 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 2041 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 2042 | break;
|
---|
[6850] | 2043 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
[7781] | 2044 | phasebiasSat->Biases[ii].Type = CODETYPE_BDS_B2_I;
|
---|
[6851] | 2045 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 2046 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 2047 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 2048 | pbSig.wlIndicator;
|
---|
[6877] | 2049 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 2050 | pbSig.discontinuityCounter;
|
---|
[6850] | 2051 | }
|
---|
[6851] | 2052 | else if (pbSig.type == "7Q") {
|
---|
[6877] | 2053 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 2054 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 2055 | break;
|
---|
[6850] | 2056 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
[7781] | 2057 | phasebiasSat->Biases[ii].Type = CODETYPE_BDS_B2_Q;
|
---|
[6851] | 2058 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 2059 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 2060 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 2061 | pbSig.wlIndicator;
|
---|
[6877] | 2062 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 2063 | pbSig.discontinuityCounter;
|
---|
[6850] | 2064 | }
|
---|
[6851] | 2065 | else if (pbSig.type == "7X") {
|
---|
[6877] | 2066 | int ii = phasebiasSat->NumberOfPhaseBiases;
|
---|
| 2067 | if (ii >= CLOCKORBIT_NUMBIAS)
|
---|
| 2068 | break;
|
---|
[6850] | 2069 | phasebiasSat->NumberOfPhaseBiases += 1;
|
---|
[7774] | 2070 | phasebiasSat->Biases[ii].Type = CODETYPE_BDS_B2_IQ;
|
---|
[6851] | 2071 | phasebiasSat->Biases[ii].Bias = pbSig.bias;
|
---|
[8017] | 2072 | phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator;
|
---|
[6877] | 2073 | phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator =
|
---|
[8017] | 2074 | pbSig.wlIndicator;
|
---|
[6877] | 2075 | phasebiasSat->Biases[ii].SignalDiscontinuityCounter =
|
---|
[8017] | 2076 | pbSig.discontinuityCounter;
|
---|
[6850] | 2077 | }
|
---|
| 2078 | }
|
---|
| 2079 | }
|
---|
| 2080 | }
|
---|
[3222] | 2081 | }
|
---|
| 2082 | }
|
---|
[3227] | 2083 |
|
---|
[5662] | 2084 | QByteArray hlpBufferCo;
|
---|
[3493] | 2085 |
|
---|
| 2086 | // Orbit and Clock Corrections together
|
---|
| 2087 | // ------------------------------------
|
---|
[4174] | 2088 | if (_samplRtcmEphCorr == 0.0) {
|
---|
[6877] | 2089 | if (co.NumberOfSat[CLOCKORBIT_SATGPS] > 0
|
---|
| 2090 | || co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0
|
---|
| 2091 | || co.NumberOfSat[CLOCKORBIT_SATGALILEO] > 0
|
---|
| 2092 | || co.NumberOfSat[CLOCKORBIT_SATQZSS] > 0
|
---|
| 2093 | || co.NumberOfSat[CLOCKORBIT_SATSBAS] > 0
|
---|
| 2094 | || co.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
|
---|
[3493] | 2095 | char obuffer[CLOCKORBIT_BUFFERSIZE];
|
---|
| 2096 | int len = MakeClockOrbit(&co, COTYPE_AUTO, 0, obuffer, sizeof(obuffer));
|
---|
| 2097 | if (len > 0) {
|
---|
| 2098 | hlpBufferCo = QByteArray(obuffer, len);
|
---|
| 2099 | }
|
---|
[3222] | 2100 | }
|
---|
| 2101 | }
|
---|
[3493] | 2102 |
|
---|
| 2103 | // Orbit and Clock Corrections separately
|
---|
| 2104 | // --------------------------------------
|
---|
| 2105 | else {
|
---|
[5666] | 2106 | if (co.NumberOfSat[CLOCKORBIT_SATGPS] > 0) {
|
---|
[3493] | 2107 | char obuffer[CLOCKORBIT_BUFFERSIZE];
|
---|
[4174] | 2108 | if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
|
---|
[4754] | 2109 | co.UpdateInterval = ephUpdInd;
|
---|
[6877] | 2110 | int len1 = MakeClockOrbit(&co, COTYPE_GPSORBIT, 1, obuffer,
|
---|
| 2111 | sizeof(obuffer));
|
---|
[4754] | 2112 | co.UpdateInterval = clkUpdInd;
|
---|
[3493] | 2113 | if (len1 > 0) {
|
---|
| 2114 | hlpBufferCo += QByteArray(obuffer, len1);
|
---|
| 2115 | }
|
---|
| 2116 | }
|
---|
[5666] | 2117 | int mmsg = (co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) ? 1 : 0;
|
---|
[6877] | 2118 | int len2 = MakeClockOrbit(&co, COTYPE_GPSCLOCK, mmsg, obuffer,
|
---|
| 2119 | sizeof(obuffer));
|
---|
[3493] | 2120 | if (len2 > 0) {
|
---|
| 2121 | hlpBufferCo += QByteArray(obuffer, len2);
|
---|
| 2122 | }
|
---|
| 2123 | }
|
---|
[5666] | 2124 | if (co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) {
|
---|
[3493] | 2125 | char obuffer[CLOCKORBIT_BUFFERSIZE];
|
---|
[4174] | 2126 | if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
|
---|
[4754] | 2127 | co.UpdateInterval = ephUpdInd;
|
---|
[6877] | 2128 | int len1 = MakeClockOrbit(&co, COTYPE_GLONASSORBIT, 1, obuffer,
|
---|
| 2129 | sizeof(obuffer));
|
---|
[4754] | 2130 | co.UpdateInterval = clkUpdInd;
|
---|
[3493] | 2131 | if (len1 > 0) {
|
---|
| 2132 | hlpBufferCo += QByteArray(obuffer, len1);
|
---|
| 2133 | }
|
---|
| 2134 | }
|
---|
[6844] | 2135 | int mmsg = (co.NumberOfSat[CLOCKORBIT_SATGALILEO] > 0) ? 1 : 0;
|
---|
[6877] | 2136 | int len2 = MakeClockOrbit(&co, COTYPE_GLONASSCLOCK, mmsg, obuffer,
|
---|
| 2137 | sizeof(obuffer));
|
---|
[3493] | 2138 | if (len2 > 0) {
|
---|
| 2139 | hlpBufferCo += QByteArray(obuffer, len2);
|
---|
| 2140 | }
|
---|
| 2141 | }
|
---|
[6844] | 2142 | if (co.NumberOfSat[CLOCKORBIT_SATGALILEO] > 0) {
|
---|
| 2143 | char obuffer[CLOCKORBIT_BUFFERSIZE];
|
---|
| 2144 | if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
|
---|
| 2145 | co.UpdateInterval = ephUpdInd;
|
---|
[6877] | 2146 | int len1 = MakeClockOrbit(&co, COTYPE_GALILEOORBIT, 1, obuffer,
|
---|
| 2147 | sizeof(obuffer));
|
---|
[6844] | 2148 | co.UpdateInterval = clkUpdInd;
|
---|
| 2149 | if (len1 > 0) {
|
---|
| 2150 | hlpBufferCo += QByteArray(obuffer, len1);
|
---|
| 2151 | }
|
---|
| 2152 | }
|
---|
| 2153 | int mmsg = (co.NumberOfSat[CLOCKORBIT_SATQZSS] > 0) ? 1 : 0;
|
---|
[6877] | 2154 | int len2 = MakeClockOrbit(&co, COTYPE_GALILEOCLOCK, mmsg, obuffer,
|
---|
| 2155 | sizeof(obuffer));
|
---|
[6844] | 2156 | if (len2 > 0) {
|
---|
| 2157 | hlpBufferCo += QByteArray(obuffer, len2);
|
---|
| 2158 | }
|
---|
| 2159 | }
|
---|
| 2160 | if (co.NumberOfSat[CLOCKORBIT_SATQZSS] > 0) {
|
---|
| 2161 | char obuffer[CLOCKORBIT_BUFFERSIZE];
|
---|
| 2162 | if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
|
---|
| 2163 | co.UpdateInterval = ephUpdInd;
|
---|
[6877] | 2164 | int len1 = MakeClockOrbit(&co, COTYPE_QZSSORBIT, 1, obuffer,
|
---|
| 2165 | sizeof(obuffer));
|
---|
[6844] | 2166 | co.UpdateInterval = clkUpdInd;
|
---|
| 2167 | if (len1 > 0) {
|
---|
| 2168 | hlpBufferCo += QByteArray(obuffer, len1);
|
---|
| 2169 | }
|
---|
| 2170 | }
|
---|
| 2171 | int mmsg = (co.NumberOfSat[CLOCKORBIT_SATSBAS] > 0) ? 1 : 0;
|
---|
[6877] | 2172 | int len2 = MakeClockOrbit(&co, COTYPE_QZSSCLOCK, mmsg, obuffer,
|
---|
| 2173 | sizeof(obuffer));
|
---|
[6844] | 2174 | if (len2 > 0) {
|
---|
| 2175 | hlpBufferCo += QByteArray(obuffer, len2);
|
---|
| 2176 | }
|
---|
| 2177 | }
|
---|
| 2178 | if (co.NumberOfSat[CLOCKORBIT_SATSBAS] > 0) {
|
---|
| 2179 | char obuffer[CLOCKORBIT_BUFFERSIZE];
|
---|
| 2180 | if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
|
---|
| 2181 | co.UpdateInterval = ephUpdInd;
|
---|
[6877] | 2182 | int len1 = MakeClockOrbit(&co, COTYPE_SBASORBIT, 1, obuffer,
|
---|
| 2183 | sizeof(obuffer));
|
---|
[6844] | 2184 | co.UpdateInterval = clkUpdInd;
|
---|
| 2185 | if (len1 > 0) {
|
---|
| 2186 | hlpBufferCo += QByteArray(obuffer, len1);
|
---|
| 2187 | }
|
---|
| 2188 | }
|
---|
| 2189 | int mmsg = (co.NumberOfSat[CLOCKORBIT_SATBDS] > 0) ? 1 : 0;
|
---|
[6877] | 2190 | int len2 = MakeClockOrbit(&co, COTYPE_SBASCLOCK, mmsg, obuffer,
|
---|
| 2191 | sizeof(obuffer));
|
---|
[6844] | 2192 | if (len2 > 0) {
|
---|
| 2193 | hlpBufferCo += QByteArray(obuffer, len2);
|
---|
| 2194 | }
|
---|
| 2195 | }
|
---|
| 2196 | if (co.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
|
---|
| 2197 | char obuffer[CLOCKORBIT_BUFFERSIZE];
|
---|
| 2198 | if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
|
---|
| 2199 | co.UpdateInterval = ephUpdInd;
|
---|
[6877] | 2200 | int len1 = MakeClockOrbit(&co, COTYPE_BDSORBIT, 1, obuffer,
|
---|
| 2201 | sizeof(obuffer));
|
---|
[6844] | 2202 | co.UpdateInterval = clkUpdInd;
|
---|
| 2203 | if (len1 > 0) {
|
---|
| 2204 | hlpBufferCo += QByteArray(obuffer, len1);
|
---|
| 2205 | }
|
---|
| 2206 | }
|
---|
[6877] | 2207 | int len2 = MakeClockOrbit(&co, COTYPE_BDSCLOCK, 0, obuffer,
|
---|
| 2208 | sizeof(obuffer));
|
---|
[6844] | 2209 | if (len2 > 0) {
|
---|
| 2210 | hlpBufferCo += QByteArray(obuffer, len2);
|
---|
| 2211 | }
|
---|
| 2212 | }
|
---|
[3493] | 2213 | }
|
---|
[5662] | 2214 |
|
---|
[6850] | 2215 | // Code Biases
|
---|
| 2216 | // -----------
|
---|
[5662] | 2217 | QByteArray hlpBufferBias;
|
---|
[6877] | 2218 | if (bias.NumberOfSat[CLOCKORBIT_SATGPS] > 0
|
---|
| 2219 | || bias.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0
|
---|
| 2220 | || bias.NumberOfSat[CLOCKORBIT_SATGALILEO] > 0
|
---|
| 2221 | || bias.NumberOfSat[CLOCKORBIT_SATQZSS] > 0
|
---|
| 2222 | || bias.NumberOfSat[CLOCKORBIT_SATSBAS] > 0
|
---|
| 2223 | || bias.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
|
---|
[3222] | 2224 | char obuffer[CLOCKORBIT_BUFFERSIZE];
|
---|
[5666] | 2225 | int len = MakeCodeBias(&bias, BTYPE_AUTO, 0, obuffer, sizeof(obuffer));
|
---|
[3222] | 2226 | if (len > 0) {
|
---|
[3227] | 2227 | hlpBufferBias = QByteArray(obuffer, len);
|
---|
[3222] | 2228 | }
|
---|
| 2229 | }
|
---|
[3227] | 2230 |
|
---|
[6850] | 2231 | // Phase Biases
|
---|
| 2232 | // ------------
|
---|
| 2233 | QByteArray hlpBufferPhaseBias;
|
---|
[6877] | 2234 | if (phasebias.NumberOfSat[CLOCKORBIT_SATGPS] > 0
|
---|
| 2235 | || phasebias.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0
|
---|
| 2236 | || phasebias.NumberOfSat[CLOCKORBIT_SATGALILEO] > 0
|
---|
| 2237 | || phasebias.NumberOfSat[CLOCKORBIT_SATQZSS] > 0
|
---|
| 2238 | || phasebias.NumberOfSat[CLOCKORBIT_SATSBAS] > 0
|
---|
| 2239 | || phasebias.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
|
---|
[6850] | 2240 | char obuffer[CLOCKORBIT_BUFFERSIZE];
|
---|
[6877] | 2241 | int len = MakePhaseBias(&phasebias, PBTYPE_AUTO, 0, obuffer,
|
---|
| 2242 | sizeof(obuffer));
|
---|
[6850] | 2243 | if (len > 0) {
|
---|
| 2244 | hlpBufferPhaseBias = QByteArray(obuffer, len);
|
---|
| 2245 | }
|
---|
| 2246 | }
|
---|
| 2247 |
|
---|
| 2248 | // VTEC
|
---|
| 2249 | // ----
|
---|
| 2250 | QByteArray hlpBufferVtec;
|
---|
[6860] | 2251 | if (vtec.NumLayers > 0) {
|
---|
| 2252 | char obuffer[CLOCKORBIT_BUFFERSIZE];
|
---|
| 2253 | int len = MakeVTEC(&vtec, 0, obuffer, sizeof(obuffer));
|
---|
| 2254 | if (len > 0) {
|
---|
| 2255 | hlpBufferVtec = QByteArray(obuffer, len);
|
---|
| 2256 | }
|
---|
| 2257 | }
|
---|
[6850] | 2258 |
|
---|
[6877] | 2259 | _outBuffer += hlpBufferCo + hlpBufferBias + hlpBufferPhaseBias
|
---|
| 2260 | + hlpBufferVtec;
|
---|
[3222] | 2261 | }
|
---|
| 2262 |
|
---|
[5662] | 2263 | //
|
---|
[3222] | 2264 | ////////////////////////////////////////////////////////////////////////////
|
---|
[6442] | 2265 | void bncRtnetUploadCaster::processSatellite(const t_eph* eph, int GPSweek,
|
---|
[6877] | 2266 | double GPSweeks, const QString& prn, const ColumnVector& rtnAPC,
|
---|
[8483] | 2267 | double rtnUra, const ColumnVector& rtnClk, const ColumnVector& rtnVel,
|
---|
| 2268 | const ColumnVector& rtnCoM, const ColumnVector& rtnClkSig,
|
---|
[6877] | 2269 | struct ClockOrbit::SatData* sd, QString& outLine) {
|
---|
[3222] | 2270 |
|
---|
[4930] | 2271 | // Broadcast Position and Velocity
|
---|
| 2272 | // -------------------------------
|
---|
[8483] | 2273 | ColumnVector xB(7);
|
---|
[4930] | 2274 | ColumnVector vB(3);
|
---|
[6109] | 2275 | eph->getCrd(bncTime(GPSweek, GPSweeks), xB, vB, false);
|
---|
[5662] | 2276 |
|
---|
[4991] | 2277 | // Precise Position
|
---|
| 2278 | // ----------------
|
---|
| 2279 | ColumnVector xP = _CoM ? rtnCoM : rtnAPC;
|
---|
[3222] | 2280 |
|
---|
[5662] | 2281 | double dc = 0.0;
|
---|
[8405] | 2282 | if (_crdTrafo != "IGS14") {
|
---|
[8145] | 2283 | crdTrafo(GPSweek, xP, dc);
|
---|
[8094] | 2284 | }
|
---|
[5662] | 2285 |
|
---|
[4930] | 2286 | // Difference in xyz
|
---|
| 2287 | // -----------------
|
---|
[6877] | 2288 | ColumnVector dx = xB.Rows(1, 3) - xP;
|
---|
| 2289 | ColumnVector dv = vB - rtnVel;
|
---|
[5662] | 2290 |
|
---|
[4930] | 2291 | // Difference in RSW
|
---|
| 2292 | // -----------------
|
---|
[3222] | 2293 | ColumnVector rsw(3);
|
---|
[6877] | 2294 | XYZ_to_RSW(xB.Rows(1, 3), vB, dx, rsw);
|
---|
[3222] | 2295 |
|
---|
[4930] | 2296 | ColumnVector dotRsw(3);
|
---|
[6877] | 2297 | XYZ_to_RSW(xB.Rows(1, 3), vB, dv, dotRsw);
|
---|
[3222] | 2298 |
|
---|
[4930] | 2299 | // Clock Correction
|
---|
| 2300 | // ----------------
|
---|
[8499] | 2301 | double dClkA0 = rtnClk(1) - (xB(4) - dc) * t_CST::c;
|
---|
| 2302 | double dClkA1 = 0.0;
|
---|
| 2303 | double dClkA2 = 0.0;
|
---|
| 2304 | if (rtnClk(2)) {
|
---|
| 2305 | dClkA0 = rtnClk(1) - (xB(5) - dc) * t_CST::c;
|
---|
| 2306 | dClkA1 = rtnClk(2) - xB(6) * t_CST::c;
|
---|
| 2307 | }
|
---|
| 2308 | if (rtnClk(3)) {
|
---|
| 2309 | dClkA2 = rtnClk(3) - xB(7) * t_CST::c;
|
---|
| 2310 | }
|
---|
[3222] | 2311 |
|
---|
| 2312 | if (sd) {
|
---|
[6877] | 2313 | sd->ID = prn.mid(1).toInt();
|
---|
| 2314 | sd->IOD = eph->IOD();
|
---|
[8483] | 2315 | sd->Clock.DeltaA0 = dClkA0;
|
---|
| 2316 | sd->Clock.DeltaA1 = dClkA1;
|
---|
| 2317 | sd->Clock.DeltaA2 = dClkA2;
|
---|
| 2318 | sd->UserRangeAccuracy = rtnUra;
|
---|
| 2319 | sd->Orbit.DeltaRadial = rsw(1);
|
---|
[6877] | 2320 | sd->Orbit.DeltaAlongTrack = rsw(2);
|
---|
| 2321 | sd->Orbit.DeltaCrossTrack = rsw(3);
|
---|
[8483] | 2322 | sd->Orbit.DotDeltaRadial = dotRsw(1);
|
---|
[4930] | 2323 | sd->Orbit.DotDeltaAlongTrack = dotRsw(2);
|
---|
| 2324 | sd->Orbit.DotDeltaCrossTrack = dotRsw(3);
|
---|
[3222] | 2325 | }
|
---|
| 2326 |
|
---|
[8483] | 2327 | outLine.sprintf("%d %.1f %s %u %10.3f %8.3f %8.3f %8.3f %8.3f %8.3f\n", GPSweek,
|
---|
| 2328 | GPSweeks, eph->prn().toString().c_str(), eph->IOD(), dClkA0, dClkA1, dClkA2,
|
---|
| 2329 | rsw(1), rsw(2), rsw(3));
|
---|
[3222] | 2330 |
|
---|
[8499] | 2331 | // RTNET full clock for RINEX and SP3 file
|
---|
| 2332 | // ---------------------------------------
|
---|
[4991] | 2333 | double relativity = -2.0 * DotProduct(xP, rtnVel) / t_CST::c;
|
---|
[8499] | 2334 | double clkRnx = (rtnClk[0] - relativity) / t_CST::c; // [s]
|
---|
[8483] | 2335 | double clkRnxRate = rtnClk[1] / t_CST::c; // [s/s = -]
|
---|
| 2336 | double clkRnxAcc = rtnClk[2] / t_CST::c; // [s/s² ) -/s]
|
---|
[4991] | 2337 |
|
---|
[3222] | 2338 | if (_rnx) {
|
---|
[8499] | 2339 | double clkRnxSig = rtnClkSig[0] / t_CST::c; // [s]
|
---|
[8483] | 2340 | double clkRnxRateSig = rtnClkSig[1] / t_CST::c; // [s/s = -]
|
---|
| 2341 | double clkRnxAccSig = rtnClkSig[2] / t_CST::c; // [s/s² ) -/s]
|
---|
| 2342 | _rnx->write(GPSweek, GPSweeks, prn, clkRnx, clkRnxRate, clkRnxAcc,
|
---|
| 2343 | clkRnxSig, clkRnxRateSig, clkRnxAccSig);
|
---|
[3222] | 2344 | }
|
---|
| 2345 | if (_sp3) {
|
---|
[8483] | 2346 | _sp3->write(GPSweek, GPSweeks, prn, rtnCoM, clkRnx, rtnVel, clkRnxRate);
|
---|
[3222] | 2347 | }
|
---|
| 2348 | }
|
---|
| 2349 |
|
---|
| 2350 | // Transform Coordinates
|
---|
| 2351 | ////////////////////////////////////////////////////////////////////////////
|
---|
[5662] | 2352 | void bncRtnetUploadCaster::crdTrafo(int GPSWeek, ColumnVector& xyz,
|
---|
[6877] | 2353 | double& dc) {
|
---|
[3222] | 2354 |
|
---|
| 2355 | // Current epoch minus 2000.0 in years
|
---|
| 2356 | // ------------------------------------
|
---|
[6877] | 2357 | double dt = (GPSWeek - (1042.0 + 6.0 / 7.0)) / 365.2422 * 7.0 + 2000.0 - _t0;
|
---|
[3222] | 2358 |
|
---|
| 2359 | ColumnVector dx(3);
|
---|
| 2360 |
|
---|
| 2361 | dx(1) = _dx + dt * _dxr;
|
---|
| 2362 | dx(2) = _dy + dt * _dyr;
|
---|
| 2363 | dx(3) = _dz + dt * _dzr;
|
---|
| 2364 |
|
---|
| 2365 | static const double arcSec = 180.0 * 3600.0 / M_PI;
|
---|
| 2366 |
|
---|
| 2367 | double ox = (_ox + dt * _oxr) / arcSec;
|
---|
| 2368 | double oy = (_oy + dt * _oyr) / arcSec;
|
---|
| 2369 | double oz = (_oz + dt * _ozr) / arcSec;
|
---|
| 2370 |
|
---|
| 2371 | double sc = 1.0 + _sc * 1e-9 + dt * _scr * 1e-9;
|
---|
| 2372 |
|
---|
[4912] | 2373 | // Specify approximate center of area
|
---|
| 2374 | // ----------------------------------
|
---|
| 2375 | ColumnVector meanSta(3);
|
---|
| 2376 |
|
---|
[6877] | 2377 | if (_crdTrafo == "ETRF2000") {
|
---|
| 2378 | meanSta(1) = 3661090.0;
|
---|
| 2379 | meanSta(2) = 845230.0;
|
---|
| 2380 | meanSta(3) = 5136850.0;
|
---|
[4908] | 2381 | }
|
---|
[8094] | 2382 | else if (_crdTrafo == "GDA2020") {
|
---|
[4973] | 2383 | meanSta(1) = -4052050.0;
|
---|
[6877] | 2384 | meanSta(2) = 4212840.0;
|
---|
[4973] | 2385 | meanSta(3) = -2545110.0;
|
---|
[4912] | 2386 | }
|
---|
| 2387 | else if (_crdTrafo == "SIRGAS2000") {
|
---|
[6877] | 2388 | meanSta(1) = 3740860.0;
|
---|
[4973] | 2389 | meanSta(2) = -4964290.0;
|
---|
| 2390 | meanSta(3) = -1425420.0;
|
---|
[4912] | 2391 | }
|
---|
[5343] | 2392 | else if (_crdTrafo == "DREF91") {
|
---|
[6877] | 2393 | meanSta(1) = 3959579.0;
|
---|
| 2394 | meanSta(2) = 721719.0;
|
---|
| 2395 | meanSta(3) = 4931539.0;
|
---|
[5343] | 2396 | }
|
---|
[4912] | 2397 | else if (_crdTrafo == "Custom") {
|
---|
[6877] | 2398 | meanSta(1) = 0.0; // TODO
|
---|
| 2399 | meanSta(2) = 0.0; // TODO
|
---|
| 2400 | meanSta(3) = 0.0; // TODO
|
---|
[4912] | 2401 | }
|
---|
[4908] | 2402 |
|
---|
[4912] | 2403 | // Clock correction proportional to topocentric distance to satellites
|
---|
| 2404 | // -------------------------------------------------------------------
|
---|
| 2405 | double rho = (xyz - meanSta).norm_Frobenius();
|
---|
[4913] | 2406 | dc = rho * (sc - 1.0) / sc / t_CST::c;
|
---|
[4908] | 2407 |
|
---|
[6877] | 2408 | Matrix rMat(3, 3);
|
---|
| 2409 | rMat(1, 1) = 1.0;
|
---|
| 2410 | rMat(1, 2) = -oz;
|
---|
| 2411 | rMat(1, 3) = oy;
|
---|
| 2412 | rMat(2, 1) = oz;
|
---|
| 2413 | rMat(2, 2) = 1.0;
|
---|
| 2414 | rMat(2, 3) = -ox;
|
---|
| 2415 | rMat(3, 1) = -oy;
|
---|
| 2416 | rMat(3, 2) = ox;
|
---|
| 2417 | rMat(3, 3) = 1.0;
|
---|
[3222] | 2418 |
|
---|
| 2419 | xyz = sc * rMat * xyz + dx;
|
---|
| 2420 | }
|
---|
| 2421 |
|
---|
[6557] | 2422 | int bncRtnetUploadCaster::determineUpdateInd(double samplingRate) {
|
---|
| 2423 |
|
---|
| 2424 | if (samplingRate == 10.0) {
|
---|
| 2425 | return 3;
|
---|
| 2426 | }
|
---|
| 2427 | else if (samplingRate == 15.0) {
|
---|
| 2428 | return 4;
|
---|
| 2429 | }
|
---|
| 2430 | else if (samplingRate == 30.0) {
|
---|
| 2431 | return 5;
|
---|
| 2432 | }
|
---|
| 2433 | else if (samplingRate == 60.0) {
|
---|
| 2434 | return 6;
|
---|
| 2435 | }
|
---|
| 2436 | else if (samplingRate == 120.0) {
|
---|
| 2437 | return 7;
|
---|
| 2438 | }
|
---|
| 2439 | else if (samplingRate == 240.0) {
|
---|
| 2440 | return 8;
|
---|
| 2441 | }
|
---|
| 2442 | else if (samplingRate == 300.0) {
|
---|
| 2443 | return 9;
|
---|
| 2444 | }
|
---|
| 2445 | else if (samplingRate == 600.0) {
|
---|
| 2446 | return 10;
|
---|
| 2447 | }
|
---|
| 2448 | else if (samplingRate == 900.0) {
|
---|
| 2449 | return 11;
|
---|
| 2450 | }
|
---|
| 2451 | else if (samplingRate == 1800.0) {
|
---|
| 2452 | return 12;
|
---|
| 2453 | }
|
---|
| 2454 | else if (samplingRate == 3600.0) {
|
---|
| 2455 | return 13;
|
---|
| 2456 | }
|
---|
| 2457 | else if (samplingRate == 7200.0) {
|
---|
| 2458 | return 14;
|
---|
| 2459 | }
|
---|
| 2460 | else if (samplingRate == 10800.0) {
|
---|
| 2461 | return 15;
|
---|
| 2462 | }
|
---|
[6877] | 2463 | return 2; // default
|
---|
[6557] | 2464 | }
|
---|