Changeset 8987 in ntrip for branches/BNC_2.12/src/upload
- Timestamp:
- Jul 20, 2020, 3:54:44 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/upload/bncrtnetuploadcaster.cpp
r8946 r8987 150 150 _t0 = 2020.0; 151 151 } 152 // Transformation Parameters from IGb14 to SIRGAS2000 (Sonia Costa, BRA) 152 // Transformation Parameters from IGb14 to SIRGAS2000 (Thanks to Sonia Costa, BRA) 153 // June 29 2020: TX:-0.0027 m TY:-0.0025 m TZ:-0.0042 m SCL:1.20 (ppb) no rotations and no rates.*/ 153 154 else if (_crdTrafo == "SIRGAS2000") { 154 _dx = 0.0026;155 _dy = 0.0018;156 _dz = -0.00 61;155 _dx = -0.0027; 156 _dy = -0.0025; 157 _dz = -0.0042; 157 158 158 159 _dxr = 0.0000; … … 168 169 _ozr = 0.000000; 169 170 170 _sc = -1.00000;171 _sc = 1.20000; 171 172 _scr = 0.00000; 172 173 _t0 = 2000.0; … … 553 554 else if (prn.system() == 'E') { 554 555 sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 555 556 + co.NumberOfSat[CLOCKORBIT_SATGALILEO]; 556 557 ++co.NumberOfSat[CLOCKORBIT_SATGALILEO]; 557 558 } 558 559 else if (prn.system() == 'J') { 559 560 sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 560 + CLOCKORBIT_NUMGALILEO + co.NumberOfSat[CLOCKORBIT_SATQZSS]; 561 + CLOCKORBIT_NUMGALILEO 562 + co.NumberOfSat[CLOCKORBIT_SATQZSS]; 561 563 ++co.NumberOfSat[CLOCKORBIT_SATQZSS]; 562 564 } … … 569 571 else if (prn.system() == 'C') { 570 572 sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 571 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMSBAS 573 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS 574 + CLOCKORBIT_NUMSBAS 572 575 + co.NumberOfSat[CLOCKORBIT_SATBDS]; 573 576 ++co.NumberOfSat[CLOCKORBIT_SATBDS]; … … 594 597 else if (prn.system() == 'R') { 595 598 biasSat = bias.Sat + CLOCKORBIT_NUMGPS 596 + bias.NumberOfSat[CLOCKORBIT_SATGLONASS];599 + bias.NumberOfSat[CLOCKORBIT_SATGLONASS]; 597 600 ++bias.NumberOfSat[CLOCKORBIT_SATGLONASS]; 598 601 } 599 602 else if (prn.system() == 'E') { 600 603 biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 601 + bias.NumberOfSat[CLOCKORBIT_SATGALILEO];604 + bias.NumberOfSat[CLOCKORBIT_SATGALILEO]; 602 605 ++bias.NumberOfSat[CLOCKORBIT_SATGALILEO]; 603 606 } 604 607 else if (prn.system() == 'J') { 605 608 biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 606 + CLOCKORBIT_NUMGALILEO + bias.NumberOfSat[CLOCKORBIT_SATQZSS]; 609 + CLOCKORBIT_NUMGALILEO 610 + bias.NumberOfSat[CLOCKORBIT_SATQZSS]; 607 611 ++bias.NumberOfSat[CLOCKORBIT_SATQZSS]; 608 612 } 609 613 else if (prn.system() == 'S') { 610 614 biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 611 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS612 + bias.NumberOfSat[CLOCKORBIT_SATSBAS];615 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS 616 + bias.NumberOfSat[CLOCKORBIT_SATSBAS]; 613 617 ++bias.NumberOfSat[CLOCKORBIT_SATSBAS]; 614 618 } 615 619 else if (prn.system() == 'C') { 616 620 biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 617 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMSBAS 618 + bias.NumberOfSat[CLOCKORBIT_SATBDS]; 621 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS 622 + CLOCKORBIT_NUMSBAS 623 + bias.NumberOfSat[CLOCKORBIT_SATBDS]; 619 624 ++bias.NumberOfSat[CLOCKORBIT_SATBDS]; 620 625 } … … 652 657 biasSat->Biases[ii].Bias = it.value(); 653 658 } 659 #ifdef USE_SSR_RTCM 654 660 else if (it.key() == "1X") { 655 661 int ii = biasSat->NumberOfCodeBiases; … … 660 666 biasSat->Biases[ii].Bias = it.value(); 661 667 } 668 #endif 662 669 else if (it.key() == "1P") { 663 670 int ii = biasSat->NumberOfCodeBiases; … … 708 715 biasSat->Biases[ii].Bias = it.value(); 709 716 } 717 #ifdef USE_SSR_RTCM 710 718 else if (it.key() == "2X") { 711 719 int ii = biasSat->NumberOfCodeBiases; … … 716 724 biasSat->Biases[ii].Bias = it.value(); 717 725 } 726 #endif 718 727 else if (it.key() == "2P") { 719 728 int ii = biasSat->NumberOfCodeBiases; … … 748 757 biasSat->Biases[ii].Bias = it.value(); 749 758 } 759 #ifdef USE_SSR_RTCM 750 760 else if (it.key() == "5X") { 751 761 int ii = biasSat->NumberOfCodeBiases; … … 756 766 biasSat->Biases[ii].Bias = it.value(); 757 767 } 768 #endif 758 769 } 759 770 } … … 810 821 biasSat->Biases[ii].Bias = it.value(); 811 822 } 823 #ifdef USE_SSR_RTCM 812 824 else if (it.key() == "4X") { 813 825 int ii = biasSat->NumberOfCodeBiases; … … 818 830 biasSat->Biases[ii].Bias = it.value(); 819 831 } 832 #endif 820 833 else if (it.key() == "6A") { 821 834 int ii = biasSat->NumberOfCodeBiases; … … 834 847 biasSat->Biases[ii].Bias = it.value(); 835 848 } 849 #ifdef USE_SSR_RTCM 836 850 else if (it.key() == "6X") { 837 851 int ii = biasSat->NumberOfCodeBiases; … … 842 856 biasSat->Biases[ii].Bias = it.value(); 843 857 } 858 #endif 844 859 else if (it.key() == "3I") { 845 860 int ii = biasSat->NumberOfCodeBiases; … … 858 873 biasSat->Biases[ii].Bias = it.value(); 859 874 } 875 #ifdef USE_SSR_RTCM 860 876 else if (it.key() == "3X") { 861 877 int ii = biasSat->NumberOfCodeBiases; … … 866 882 biasSat->Biases[ii].Bias = it.value(); 867 883 } 884 #endif 868 885 } 869 886 } … … 896 913 biasSat->Biases[ii].Bias = it.value(); 897 914 } 915 #ifdef USE_SSR_RTCM 898 916 else if (it.key() == "1X") { 899 917 int ii = biasSat->NumberOfCodeBiases; … … 912 930 biasSat->Biases[ii].Bias = it.value(); 913 931 } 932 #endif 914 933 else if (it.key() == "5I") { 915 934 int ii = biasSat->NumberOfCodeBiases; … … 928 947 biasSat->Biases[ii].Bias = it.value(); 929 948 } 949 #ifdef USE_SSR_RTCM 930 950 else if (it.key() == "5X") { 931 951 int ii = biasSat->NumberOfCodeBiases; … … 936 956 biasSat->Biases[ii].Bias = it.value(); 937 957 } 958 #endif 938 959 else if (it.key() == "7I") { 939 960 int ii = biasSat->NumberOfCodeBiases; … … 952 973 biasSat->Biases[ii].Bias = it.value(); 953 974 } 975 #ifdef USE_SSR_RTCM 954 976 else if (it.key() == "7X") { 955 977 int ii = biasSat->NumberOfCodeBiases; … … 984 1006 biasSat->Biases[ii].Bias = it.value(); 985 1007 } 1008 #endif 986 1009 else if (it.key() == "6A") { 987 1010 int ii = biasSat->NumberOfCodeBiases; … … 1008 1031 biasSat->Biases[ii].Bias = it.value(); 1009 1032 } 1033 #ifdef USE_SSR_RTCM 1010 1034 else if (it.key() == "6X") { 1011 1035 int ii = biasSat->NumberOfCodeBiases; … … 1024 1048 biasSat->Biases[ii].Bias = it.value(); 1025 1049 } 1050 #endif 1026 1051 } 1027 1052 } … … 1070 1095 biasSat->Biases[ii].Bias = it.value(); 1071 1096 } 1097 #ifdef USE_SSR_RTCM 1072 1098 else if (it.key() == "2X") { 1073 1099 int ii = biasSat->NumberOfCodeBiases; … … 1078 1104 biasSat->Biases[ii].Bias = it.value(); 1079 1105 } 1106 #endif 1080 1107 else if (it.key() == "5I") { 1081 1108 int ii = biasSat->NumberOfCodeBiases; … … 1094 1121 biasSat->Biases[ii].Bias = it.value(); 1095 1122 } 1123 #ifdef USE_SSR_RTCM 1096 1124 else if (it.key() == "5X") { 1097 1125 int ii = biasSat->NumberOfCodeBiases; … … 1102 1130 biasSat->Biases[ii].Bias = it.value(); 1103 1131 } 1132 #endif 1104 1133 else if (it.key() == "6S") { 1105 1134 int ii = biasSat->NumberOfCodeBiases; … … 1118 1147 biasSat->Biases[ii].Bias = it.value(); 1119 1148 } 1149 #ifdef USE_SSR_RTCM 1120 1150 else if (it.key() == "6X") { 1121 1151 int ii = biasSat->NumberOfCodeBiases; … … 1166 1196 biasSat->Biases[ii].Bias = it.value(); 1167 1197 } 1198 #endif 1168 1199 else if (it.key() == "6E") { 1169 1200 int ii = biasSat->NumberOfCodeBiases; … … 1174 1205 biasSat->Biases[ii].Bias = it.value(); 1175 1206 } 1207 #ifdef USE_SSR_RTCM 1176 1208 else if (it.key() == "6Z") { 1177 1209 int ii = biasSat->NumberOfCodeBiases; … … 1182 1214 biasSat->Biases[ii].Bias = it.value(); 1183 1215 } 1216 #endif 1184 1217 } 1185 1218 } … … 1212 1245 biasSat->Biases[ii].Bias = it.value(); 1213 1246 } 1247 #ifdef USE_SSR_RTCM 1214 1248 else if (it.key() == "5X") { 1215 1249 int ii = biasSat->NumberOfCodeBiases; … … 1220 1254 biasSat->Biases[ii].Bias = it.value(); 1221 1255 } 1256 #endif 1222 1257 } 1223 1258 } … … 1242 1277 biasSat->Biases[ii].Bias = it.value(); 1243 1278 } 1279 #ifdef USE_SSR_RTCM 1244 1280 else if (it.key() == "2X") { 1245 1281 int ii = biasSat->NumberOfCodeBiases; … … 1250 1286 biasSat->Biases[ii].Bias = it.value(); 1251 1287 } 1288 #endif 1252 1289 else if (it.key() == "6I") { 1253 1290 int ii = biasSat->NumberOfCodeBiases; … … 1266 1303 biasSat->Biases[ii].Bias = it.value(); 1267 1304 } 1305 #ifdef USE_SSR_RTCM 1268 1306 else if (it.key() == "6X") { 1269 1307 int ii = biasSat->NumberOfCodeBiases; … … 1274 1312 biasSat->Biases[ii].Bias = it.value(); 1275 1313 } 1314 #endif 1276 1315 else if (it.key() == "7I") { 1277 1316 int ii = biasSat->NumberOfCodeBiases; … … 1290 1329 biasSat->Biases[ii].Bias = it.value(); 1291 1330 } 1331 #ifdef USE_SSR_RTCM 1292 1332 else if (it.key() == "7X") { 1293 1333 int ii = biasSat->NumberOfCodeBiases; … … 1298 1338 biasSat->Biases[ii].Bias = it.value(); 1299 1339 } 1340 #endif 1300 1341 else if (it.key() == "1D") { 1301 1342 int ii = biasSat->NumberOfCodeBiases; … … 1314 1355 biasSat->Biases[ii].Bias = it.value(); 1315 1356 } 1357 #ifdef USE_SSR_RTCM 1316 1358 else if (it.key() == "1X") { 1317 1359 int ii = biasSat->NumberOfCodeBiases; … … 1322 1364 biasSat->Biases[ii].Bias = it.value(); 1323 1365 } 1366 #endif 1324 1367 else if (it.key() == "5D") { 1325 1368 int ii = biasSat->NumberOfCodeBiases; … … 1338 1381 biasSat->Biases[ii].Bias = it.value(); 1339 1382 } 1383 #ifdef USE_SSR_RTCM 1340 1384 else if (it.key() == "5X") { 1341 1385 int ii = biasSat->NumberOfCodeBiases; … … 1346 1390 biasSat->Biases[ii].Bias = it.value(); 1347 1391 } 1392 #elif USE_SSR_IGS 1393 else if (it.key() == "1A") { 1394 int ii = biasSat->NumberOfCodeBiases; 1395 if (ii >= CLOCKORBIT_NUMBIAS) 1396 break; 1397 biasSat->NumberOfCodeBiases += 1; 1398 biasSat->Biases[ii].Type = CODETYPE_BDS_B1_A; 1399 biasSat->Biases[ii].Bias = it.value(); 1348 1400 } 1349 } 1350 } 1401 else if (it.key() == "6A") { 1402 int ii = biasSat->NumberOfCodeBiases; 1403 if (ii >= CLOCKORBIT_NUMBIAS) 1404 break; 1405 biasSat->NumberOfCodeBiases += 1; 1406 biasSat->Biases[ii].Type = CODETYPE_BDS_B3_A; 1407 biasSat->Biases[ii].Bias = it.value(); 1408 } 1409 #endif 1410 } 1411 } 1412 } 1413 1351 1414 // Phase Biases 1352 1415 // ------------ 1353 1416 struct PhaseBias::PhaseBiasSat* phasebiasSat = 0; 1354 // if (!phaseBiasList.isEmpty()) { // to allow yaw angle without phase bias list 1355 if (prn.system() == 'G') { 1356 phasebiasSat = phasebias.Sat 1357 + phasebias.NumberOfSat[CLOCKORBIT_SATGPS]; 1358 ++phasebias.NumberOfSat[CLOCKORBIT_SATGPS]; 1359 } 1360 else if (prn.system() == 'R') { 1361 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS 1362 + phasebias.NumberOfSat[CLOCKORBIT_SATGLONASS]; 1363 ++phasebias.NumberOfSat[CLOCKORBIT_SATGLONASS]; 1364 } 1365 else if (prn.system() == 'E') { 1366 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS 1367 + CLOCKORBIT_NUMGLONASS 1368 + phasebias.NumberOfSat[CLOCKORBIT_SATGALILEO]; 1369 ++phasebias.NumberOfSat[CLOCKORBIT_SATGALILEO]; 1370 } 1371 else if (prn.system() == 'J') { 1372 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS 1373 + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO 1374 + phasebias.NumberOfSat[CLOCKORBIT_SATQZSS]; 1375 ++phasebias.NumberOfSat[CLOCKORBIT_SATQZSS]; 1376 } 1377 else if (prn.system() == 'S') { 1378 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS 1379 + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO 1380 + CLOCKORBIT_NUMQZSS + phasebias.NumberOfSat[CLOCKORBIT_SATSBAS]; 1381 ++phasebias.NumberOfSat[CLOCKORBIT_SATSBAS]; 1382 } 1383 else if (prn.system() == 'C') { 1384 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS 1385 + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO 1386 + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMSBAS 1387 + phasebias.NumberOfSat[CLOCKORBIT_SATBDS]; 1388 ++phasebias.NumberOfSat[CLOCKORBIT_SATBDS]; 1389 } 1390 //} 1417 if (prn.system() == 'G') { 1418 phasebiasSat = phasebias.Sat 1419 + phasebias.NumberOfSat[CLOCKORBIT_SATGPS]; 1420 ++phasebias.NumberOfSat[CLOCKORBIT_SATGPS]; 1421 } 1422 else if (prn.system() == 'R') { 1423 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS 1424 + phasebias.NumberOfSat[CLOCKORBIT_SATGLONASS]; 1425 ++phasebias.NumberOfSat[CLOCKORBIT_SATGLONASS]; 1426 } 1427 else if (prn.system() == 'E') { 1428 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 1429 + phasebias.NumberOfSat[CLOCKORBIT_SATGALILEO]; 1430 ++phasebias.NumberOfSat[CLOCKORBIT_SATGALILEO]; 1431 } 1432 else if (prn.system() == 'J') { 1433 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 1434 + CLOCKORBIT_NUMGALILEO 1435 + phasebias.NumberOfSat[CLOCKORBIT_SATQZSS]; 1436 ++phasebias.NumberOfSat[CLOCKORBIT_SATQZSS]; 1437 } 1438 else if (prn.system() == 'S') { 1439 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 1440 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS 1441 + phasebias.NumberOfSat[CLOCKORBIT_SATSBAS]; 1442 ++phasebias.NumberOfSat[CLOCKORBIT_SATSBAS]; 1443 } 1444 else if (prn.system() == 'C') { 1445 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 1446 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS 1447 + CLOCKORBIT_NUMSBAS 1448 + phasebias.NumberOfSat[CLOCKORBIT_SATBDS]; 1449 ++phasebias.NumberOfSat[CLOCKORBIT_SATBDS]; 1450 } 1391 1451 1392 1452 if (phasebiasSat) { … … 1478 1538 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1479 1539 } 1540 #ifdef USE_SSR_RTCM 1480 1541 else if (pbSig.type == "2X") { 1481 1542 int ii = phasebiasSat->NumberOfPhaseBiases; … … 1489 1550 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1490 1551 } 1552 #endif 1491 1553 else if (pbSig.type == "2P") { 1492 1554 int ii = phasebiasSat->NumberOfPhaseBiases; … … 1533 1595 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1534 1596 } 1597 #ifdef USE_SSR_RTCM 1535 1598 else if (pbSig.type == "5X") { 1536 1599 int ii = phasebiasSat->NumberOfPhaseBiases; … … 1544 1607 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1545 1608 } 1609 #endif 1546 1610 else if (pbSig.type == "1S") { 1547 1611 int ii = phasebiasSat->NumberOfPhaseBiases; … … 1566 1630 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1567 1631 } 1632 #ifdef USE_SSR_RTCM 1568 1633 else if (pbSig.type == "1X") { 1569 1634 int ii = phasebiasSat->NumberOfPhaseBiases; … … 1577 1642 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1578 1643 } 1644 #endif 1579 1645 } 1580 1646 } … … 1649 1715 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1650 1716 } 1717 #ifdef USE_SSR_RTCM 1651 1718 else if (pbSig.type == "4X") { 1652 1719 int ii = phasebiasSat->NumberOfPhaseBiases; … … 1660 1727 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1661 1728 } 1729 #endif 1662 1730 else if (pbSig.type == "6A") { 1663 1731 int ii = phasebiasSat->NumberOfPhaseBiases; … … 1682 1750 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1683 1751 } 1752 #ifdef USE_SSR_RTCM 1684 1753 else if (pbSig.type == "6X") { 1685 1754 int ii = phasebiasSat->NumberOfPhaseBiases; … … 1693 1762 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1694 1763 } 1764 #endif 1695 1765 else if (pbSig.type == "3I") { 1696 1766 int ii = phasebiasSat->NumberOfPhaseBiases; … … 1715 1785 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1716 1786 } 1787 #ifdef USE_SSR_RTCM 1717 1788 else if (pbSig.type == "3X") { 1718 1789 int ii = phasebiasSat->NumberOfPhaseBiases; … … 1726 1797 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1727 1798 } 1799 #endif 1728 1800 } 1729 1801 } … … 1765 1837 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1766 1838 } 1839 #ifdef USE_SSR_RTCM 1767 1840 else if (pbSig.type == "1X") { 1768 1841 int ii = phasebiasSat->NumberOfPhaseBiases; … … 1787 1860 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1788 1861 } 1862 #endif 1789 1863 else if (pbSig.type == "5I") { 1790 1864 int ii = phasebiasSat->NumberOfPhaseBiases; … … 1809 1883 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1810 1884 } 1885 #ifdef USE_SSR_RTCM 1811 1886 else if (pbSig.type == "5X") { 1812 1887 int ii = phasebiasSat->NumberOfPhaseBiases; … … 1820 1895 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1821 1896 } 1897 #endif 1822 1898 else if (pbSig.type == "7I") { 1823 1899 int ii = phasebiasSat->NumberOfPhaseBiases; … … 1842 1918 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1843 1919 } 1920 #ifdef USE_SSR_RTCM 1844 1921 else if (pbSig.type == "7X") { 1845 1922 int ii = phasebiasSat->NumberOfPhaseBiases; … … 1886 1963 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1887 1964 } 1965 #endif 1888 1966 else if (pbSig.type == "6A") { 1889 1967 int ii = phasebiasSat->NumberOfPhaseBiases; … … 1919 1997 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1920 1998 } 1999 #ifdef USE_SSR_RTCM 1921 2000 else if (pbSig.type == "6X") { 1922 2001 int ii = phasebiasSat->NumberOfPhaseBiases; … … 1941 2020 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 1942 2021 } 2022 #endif 1943 2023 } 1944 2024 } … … 2001 2081 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2002 2082 } 2083 #ifdef USE_SSR_RTCM 2003 2084 else if (pbSig.type == "2X") { 2004 2085 int ii = phasebiasSat->NumberOfPhaseBiases; … … 2011 2092 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2012 2093 } 2094 #endif 2013 2095 else if (pbSig.type == "5I") { 2014 2096 int ii = phasebiasSat->NumberOfPhaseBiases; … … 2033 2115 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2034 2116 } 2117 #ifdef USE_SSR_RTCM 2035 2118 else if (pbSig.type == "5X") { 2036 2119 int ii = phasebiasSat->NumberOfPhaseBiases; … … 2044 2127 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2045 2128 } 2129 #endif 2046 2130 else if (pbSig.type == "6S") { 2047 2131 int ii = phasebiasSat->NumberOfPhaseBiases; … … 2066 2150 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2067 2151 } 2152 #ifdef USE_SSR_RTCM 2068 2153 else if (pbSig.type == "6X") { 2069 2154 int ii = phasebiasSat->NumberOfPhaseBiases; … … 2077 2162 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2078 2163 } 2079 else if (pbSig.type == "1X") {2164 else if (pbSig.type == "1X") { 2080 2165 int ii = phasebiasSat->NumberOfPhaseBiases; 2081 2166 if (ii >= CLOCKORBIT_NUMBIAS) … … 2132 2217 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2133 2218 } 2219 #endif 2134 2220 else if (pbSig.type == "6E") { 2135 2221 int ii = phasebiasSat->NumberOfPhaseBiases; … … 2143 2229 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2144 2230 } 2231 #ifdef USE_SSR_RTCM 2145 2232 else if (pbSig.type == "6Z") { 2146 2233 int ii = phasebiasSat->NumberOfPhaseBiases; … … 2154 2241 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2155 2242 } 2243 #endif 2156 2244 } 2157 2245 } … … 2192 2280 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2193 2281 } 2282 #ifdef USE_SSR_RTCM 2194 2283 else if (pbSig.type == "5X") { 2195 2284 int ii = phasebiasSat->NumberOfPhaseBiases; … … 2203 2292 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2204 2293 } 2294 #endif 2205 2295 } 2206 2296 } … … 2231 2321 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2232 2322 } 2323 #ifdef USE_SSR_RTCM 2233 2324 else if (pbSig.type == "2X") { 2234 2325 int ii = phasebiasSat->NumberOfPhaseBiases; … … 2242 2333 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2243 2334 } 2335 #endif 2244 2336 else if (pbSig.type == "6I") { 2245 2337 int ii = phasebiasSat->NumberOfPhaseBiases; … … 2264 2356 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2265 2357 } 2358 #ifdef USE_SSR_RTCM 2266 2359 else if (pbSig.type == "6X") { 2267 2360 int ii = phasebiasSat->NumberOfPhaseBiases; … … 2275 2368 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2276 2369 } 2370 #endif 2277 2371 else if (pbSig.type == "7I") { 2278 2372 int ii = phasebiasSat->NumberOfPhaseBiases; … … 2297 2391 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2298 2392 } 2393 #ifdef USE_SSR_RTCM 2299 2394 else if (pbSig.type == "7X") { 2300 2395 int ii = phasebiasSat->NumberOfPhaseBiases; … … 2307 2402 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2308 2403 } 2404 #endif 2309 2405 else if (pbSig.type == "1D") { 2310 2406 int ii = phasebiasSat->NumberOfPhaseBiases; … … 2327 2423 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2328 2424 } 2425 #ifdef USE_SSR_RTCM 2329 2426 else if (pbSig.type == "1X") { 2330 2427 int ii = phasebiasSat->NumberOfPhaseBiases; … … 2337 2434 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2338 2435 } 2436 #endif 2339 2437 else if (pbSig.type == "5D") { 2340 2438 int ii = phasebiasSat->NumberOfPhaseBiases; … … 2357 2455 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2358 2456 } 2457 #ifdef USE_SSR_RTCM 2359 2458 else if (pbSig.type == "5X") { 2360 2459 int ii = phasebiasSat->NumberOfPhaseBiases; … … 2367 2466 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2368 2467 } 2468 #elif USE_SSR_IGS 2469 else if (pbSig.type == "1A") { 2470 int ii = phasebiasSat->NumberOfPhaseBiases; 2471 if (ii >= CLOCKORBIT_NUMBIAS) 2472 break; 2473 phasebiasSat->NumberOfPhaseBiases += 1; 2474 phasebiasSat->Biases[ii].Type = CODETYPE_BDS_B1_A; 2475 phasebiasSat->Biases[ii].Bias = pbSig.bias; 2476 phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator = pbSig.wlIndicator; 2477 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2478 } 2479 else if (pbSig.type == "6A") { 2480 int ii = phasebiasSat->NumberOfPhaseBiases; 2481 if (ii >= CLOCKORBIT_NUMBIAS) 2482 break; 2483 phasebiasSat->NumberOfPhaseBiases += 1; 2484 phasebiasSat->Biases[ii].Type = CODETYPE_BDS_B3_A; 2485 phasebiasSat->Biases[ii].Bias = pbSig.bias; 2486 phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator = pbSig.wlIndicator; 2487 phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter; 2488 } 2489 #endif 2369 2490 } 2370 2491 } … … 2372 2493 } 2373 2494 } 2495 2374 2496 2375 2497 QByteArray hlpBufferCo; … … 2525 2647 || bias.NumberOfSat[CLOCKORBIT_SATBDS] > 0) { 2526 2648 char obuffer[CLOCKORBIT_BUFFERSIZE]; 2527 int len = MakeCodeBias(&bias, BTYPE_AUTO, 0, obuffer, sizeof(obuffer));2649 int len = MakeCodeBias(&bias, CBTYPE_AUTO, 0, obuffer, sizeof(obuffer)); 2528 2650 if (len > 0) { 2529 2651 hlpBufferBias = QByteArray(obuffer, len);
Note:
See TracChangeset
for help on using the changeset viewer.