Changeset 8967 in ntrip for trunk/BNC/src
- Timestamp:
- Jul 2, 2020, 1:56:59 PM (4 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm.c
r8963 r8967 551 551 552 552 for (s = 0; s < CLOCKORBIT_SATNUM; ++s) { 553 if (b->NumberOfSat[s] && (type == BTYPE_AUTO || type == corbase[s] + COBOFS_BIAS)) {553 if (b->NumberOfSat[s] && (type == CBTYPE_AUTO || type == corbase[s] + COBOFS_CBIAS)) { 554 554 INITBLOCK 555 T_MESSAGE_NUMBER(corbase[s] + COBOFS_ BIAS)555 T_MESSAGE_NUMBER(corbase[s] + COBOFS_CBIAS) 556 556 switch (s) { 557 557 case CLOCKORBIT_SATGPS: … … 1289 1289 } 1290 1290 break; 1291 case COBOFS_ BIAS:1291 case COBOFS_CBIAS: 1292 1292 if (!b) 1293 1293 return GCOBR_NOCODEBIASPARAMETER; -
trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm.h
r8966 r8967 13 13 #include <string.h> 14 14 15 enum SatelliteReferenceDatum { DATUM_ITRF=0, DATUM_LOCAL=1 }; 15 enum SatelliteReferenceDatum { 16 DATUM_ITRF = 0, 17 DATUM_LOCAL = 1 18 }; 16 19 17 20 enum COR_BASE { … … 27 30 COBOFS_ORBIT = 0, 28 31 COBOFS_CLOCK, 29 COBOFS_ BIAS,32 COBOFS_CBIAS, 30 33 COBOFS_COMBINED, 31 34 COBOFS_URA, … … 35 38 36 39 enum ClockOrbitType { 37 COTYPE_GPSORBIT = COBBASE_GPS + COBOFS_ORBIT,40 COTYPE_GPSORBIT = COBBASE_GPS + COBOFS_ORBIT, 38 41 COTYPE_GPSCLOCK, 39 COTYPE_GPSCOMBINED = COBBASE_GPS + COBOFS_COMBINED,42 COTYPE_GPSCOMBINED = COBBASE_GPS + COBOFS_COMBINED, 40 43 COTYPE_GPSURA, 41 44 COTYPE_GPSHR, … … 53 56 COTYPE_GALILEOHR, 54 57 55 COTYPE_QZSSORBIT = COBBASE_QZSS + COBOFS_ORBIT,58 COTYPE_QZSSORBIT = COBBASE_QZSS + COBOFS_ORBIT, 56 59 COTYPE_QZSSCLOCK, 57 COTYPE_QZSSCOMBINED = COBBASE_QZSS + COBOFS_COMBINED,60 COTYPE_QZSSCOMBINED = COBBASE_QZSS + COBOFS_COMBINED, 58 61 COTYPE_QZSSURA, 59 62 COTYPE_QZSSHR, 60 63 61 COTYPE_SBASORBIT = COBBASE_SBAS + COBOFS_ORBIT,64 COTYPE_SBASORBIT = COBBASE_SBAS + COBOFS_ORBIT, 62 65 COTYPE_SBASCLOCK, 63 COTYPE_SBASCOMBINED = COBBASE_SBAS + COBOFS_COMBINED,66 COTYPE_SBASCOMBINED = COBBASE_SBAS + COBOFS_COMBINED, 64 67 COTYPE_SBASURA, 65 68 COTYPE_SBASHR, 66 69 67 COTYPE_BDSORBIT = COBBASE_BDS + COBOFS_ORBIT,70 COTYPE_BDSORBIT = COBBASE_BDS + COBOFS_ORBIT, 68 71 COTYPE_BDSCLOCK, 69 COTYPE_BDSCOMBINED = COBBASE_BDS + COBOFS_COMBINED,72 COTYPE_BDSCOMBINED = COBBASE_BDS + COBOFS_COMBINED, 70 73 COTYPE_BDSURA, 71 74 COTYPE_BDSHR, … … 75 78 76 79 enum CodeBiasType { 77 BTYPE_GPS = COBBASE_GPS + COBOFS_BIAS,78 BTYPE_GLONASS = COBBASE_GLONASS + COBOFS_BIAS,79 BTYPE_GALILEO = COBBASE_GALILEO + COBOFS_BIAS,80 BTYPE_QZSS = COBBASE_QZSS + COBOFS_BIAS,81 BTYPE_SBAS = COBBASE_SBAS + COBOFS_BIAS,82 BTYPE_BDS = COBBASE_BDS + COBOFS_BIAS,83 BTYPE_AUTO = 080 CBTYPE_GPS = COBBASE_GPS + COBOFS_CBIAS, 81 CBTYPE_GLONASS = COBBASE_GLONASS + COBOFS_CBIAS, 82 CBTYPE_GALILEO = COBBASE_GALILEO + COBOFS_CBIAS, 83 CBTYPE_QZSS = COBBASE_QZSS + COBOFS_CBIAS, 84 CBTYPE_SBAS = COBBASE_SBAS + COBOFS_CBIAS, 85 CBTYPE_BDS = COBBASE_BDS + COBOFS_CBIAS, 86 CBTYPE_AUTO = 0 84 87 }; 85 88 86 89 enum PhaseBiasType { 87 PBTYPE_BASE = 1265,88 PBTYPE_GPS = PBTYPE_BASE,90 PBTYPE_BASE = 1265, 91 PBTYPE_GPS = PBTYPE_BASE, 89 92 PBTYPE_GLONASS, 90 93 PBTYPE_GALILEO, … … 102 105 for these systems to save space */ 103 106 enum COR_CONSTANTS { 104 CLOCKORBIT_BUFFERSIZE =8192,105 CLOCKORBIT_NUMGPS =32,106 CLOCKORBIT_NUMGLONASS =26,107 CLOCKORBIT_NUMGALILEO =36,108 CLOCKORBIT_NUMQZSS =10,109 CLOCKORBIT_NUM SBAS=38,110 CLOCKORBIT_NUM BDS=65,111 CLOCKORBIT_NUMBIAS =100,112 CLOCKORBIT_NUMIONOLAYERS =4,113 CLOCKORBIT_MAXIONOORDER =16,114 CLOCKORBIT_MAXIONODEGREE =16107 CLOCKORBIT_BUFFERSIZE = 8192, 108 CLOCKORBIT_NUMGPS = 32, 109 CLOCKORBIT_NUMGLONASS = 26, 110 CLOCKORBIT_NUMGALILEO = 36, 111 CLOCKORBIT_NUMQZSS = 10, 112 CLOCKORBIT_NUMBDS = 65, 113 CLOCKORBIT_NUMSBAS = 38, 114 CLOCKORBIT_NUMBIAS = 100, 115 CLOCKORBIT_NUMIONOLAYERS = 4, 116 CLOCKORBIT_MAXIONOORDER = 16, 117 CLOCKORBIT_MAXIONODEGREE = 16 115 118 }; 116 119 … … 120 123 CLOCKORBIT_SATGALILEO, 121 124 CLOCKORBIT_SATQZSS, 125 CLOCKORBIT_SATBDS, 122 126 CLOCKORBIT_SATSBAS, 123 CLOCKORBIT_SATBDS,124 127 CLOCKORBIT_SATNUM 125 128 }; … … 128 131 CLOCKORBIT_OFFSETGPS = 0, 129 132 CLOCKORBIT_OFFSETGLONASS = CLOCKORBIT_NUMGPS, 130 CLOCKORBIT_OFFSETGALILEO = CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS,131 CLOCKORBIT_OFFSETQZSS = CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO,132 CLOCKORBIT_OFFSET SBAS = CLOCKORBIT_NUMGPS+ CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO133 CLOCKORBIT_OFFSETGALILEO = CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS, 134 CLOCKORBIT_OFFSETQZSS = CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO, 135 CLOCKORBIT_OFFSETBDS = CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO 133 136 + CLOCKORBIT_NUMQZSS, 134 CLOCKORBIT_OFFSET BDS = CLOCKORBIT_NUMGPS+ CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO135 + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUM SBAS,136 CLOCKORBIT_COUNTSAT = CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO137 + CLOCKORBIT_NUM QZSS + CLOCKORBIT_NUMSBAS+ CLOCKORBIT_NUMBDS137 CLOCKORBIT_OFFSETSBAS = CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO 138 + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMBDS, 139 CLOCKORBIT_COUNTSAT = CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO 140 + CLOCKORBIT_NUMSBAS + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMBDS 138 141 }; 139 142 -
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r8962 r8967 559 559 else if (prn.system() == 'E') { 560 560 sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 561 561 + co.NumberOfSat[CLOCKORBIT_SATGALILEO]; 562 562 ++co.NumberOfSat[CLOCKORBIT_SATGALILEO]; 563 563 } 564 564 else if (prn.system() == 'J') { 565 565 sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 566 + CLOCKORBIT_NUMGALILEO + co.NumberOfSat[CLOCKORBIT_SATQZSS]; 566 + CLOCKORBIT_NUMGALILEO 567 + co.NumberOfSat[CLOCKORBIT_SATQZSS]; 567 568 ++co.NumberOfSat[CLOCKORBIT_SATQZSS]; 569 } 570 else if (prn.system() == 'C') { 571 sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 572 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS 573 + co.NumberOfSat[CLOCKORBIT_SATBDS]; 574 ++co.NumberOfSat[CLOCKORBIT_SATBDS]; 568 575 } 569 576 else if (prn.system() == 'S') { 570 577 sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 571 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS572 578 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMSBAS 579 + co.NumberOfSat[CLOCKORBIT_SATSBAS]; 573 580 ++co.NumberOfSat[CLOCKORBIT_SATSBAS]; 574 }575 else if (prn.system() == 'C') {576 sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS577 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMSBAS578 + co.NumberOfSat[CLOCKORBIT_SATBDS];579 ++co.NumberOfSat[CLOCKORBIT_SATBDS];580 581 } 581 582 if (sd) { … … 600 601 else if (prn.system() == 'R') { 601 602 biasSat = bias.Sat + CLOCKORBIT_NUMGPS 602 + bias.NumberOfSat[CLOCKORBIT_SATGLONASS];603 + bias.NumberOfSat[CLOCKORBIT_SATGLONASS]; 603 604 ++bias.NumberOfSat[CLOCKORBIT_SATGLONASS]; 604 605 } 605 606 else if (prn.system() == 'E') { 606 607 biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 607 + bias.NumberOfSat[CLOCKORBIT_SATGALILEO];608 + bias.NumberOfSat[CLOCKORBIT_SATGALILEO]; 608 609 ++bias.NumberOfSat[CLOCKORBIT_SATGALILEO]; 609 610 } 610 611 else if (prn.system() == 'J') { 611 612 biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 612 + CLOCKORBIT_NUMGALILEO + bias.NumberOfSat[CLOCKORBIT_SATQZSS]; 613 + CLOCKORBIT_NUMGALILEO 614 + bias.NumberOfSat[CLOCKORBIT_SATQZSS]; 613 615 ++bias.NumberOfSat[CLOCKORBIT_SATQZSS]; 616 } 617 else if (prn.system() == 'C') { 618 biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 619 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS 620 + bias.NumberOfSat[CLOCKORBIT_SATBDS]; 621 ++bias.NumberOfSat[CLOCKORBIT_SATBDS]; 614 622 } 615 623 else if (prn.system() == 'S') { 616 624 biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 617 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS618 + bias.NumberOfSat[CLOCKORBIT_SATSBAS];625 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMBDS 626 + bias.NumberOfSat[CLOCKORBIT_SATSBAS]; 619 627 ++bias.NumberOfSat[CLOCKORBIT_SATSBAS]; 620 }621 else if (prn.system() == 'C') {622 biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS623 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMSBAS624 + bias.NumberOfSat[CLOCKORBIT_SATBDS];625 ++bias.NumberOfSat[CLOCKORBIT_SATBDS];626 628 } 627 629 } … … 1371 1373 } 1372 1374 else if (prn.system() == 'E') { 1373 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS 1374 + CLOCKORBIT_NUMGLONASS 1375 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 1375 1376 + phasebias.NumberOfSat[CLOCKORBIT_SATGALILEO]; 1376 1377 ++phasebias.NumberOfSat[CLOCKORBIT_SATGALILEO]; 1377 1378 } 1378 1379 else if (prn.system() == 'J') { 1379 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS 1380 + CLOCKORBIT_NUMGLONASS+ CLOCKORBIT_NUMGALILEO1381 + phasebias.NumberOfSat[CLOCKORBIT_SATQZSS];1380 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 1381 + CLOCKORBIT_NUMGALILEO 1382 + phasebias.NumberOfSat[CLOCKORBIT_SATQZSS]; 1382 1383 ++phasebias.NumberOfSat[CLOCKORBIT_SATQZSS]; 1383 1384 } 1385 else if (prn.system() == 'C') { 1386 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 1387 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS 1388 + phasebias.NumberOfSat[CLOCKORBIT_SATBDS]; 1389 ++phasebias.NumberOfSat[CLOCKORBIT_SATBDS]; 1390 } 1384 1391 else if (prn.system() == 'S') { 1385 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS 1386 + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO1387 + CLOCKORBIT_NUMQZSS+ phasebias.NumberOfSat[CLOCKORBIT_SATSBAS];1392 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 1393 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMBDS 1394 + phasebias.NumberOfSat[CLOCKORBIT_SATSBAS]; 1388 1395 ++phasebias.NumberOfSat[CLOCKORBIT_SATSBAS]; 1389 }1390 else if (prn.system() == 'C') {1391 phasebiasSat = phasebias.Sat + CLOCKORBIT_NUMGPS1392 + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO1393 + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMSBAS1394 + phasebias.NumberOfSat[CLOCKORBIT_SATBDS];1395 ++phasebias.NumberOfSat[CLOCKORBIT_SATBDS];1396 1396 } 1397 1397 //} … … 2533 2533 || bias.NumberOfSat[CLOCKORBIT_SATBDS] > 0) { 2534 2534 char obuffer[CLOCKORBIT_BUFFERSIZE]; 2535 int len = MakeCodeBias(&bias, BTYPE_AUTO, 0, obuffer, sizeof(obuffer));2535 int len = MakeCodeBias(&bias, CBTYPE_AUTO, 0, obuffer, sizeof(obuffer)); 2536 2536 if (len > 0) { 2537 2537 hlpBufferBias = QByteArray(obuffer, len);
Note:
See TracChangeset
for help on using the changeset viewer.