Changeset 9210 in ntrip for trunk/BNC/src/RTCM3/clock_and_orbit
- Timestamp:
- Nov 3, 2020, 4:26:44 PM (4 years ago)
- Location:
- trunk/BNC/src/RTCM3/clock_and_orbit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_igs.cpp
r9031 r9210 302 302 return GCOBR_SHORTBUFFER; 303 303 304 #ifdef DEBUG304 #ifdef BNC_DEBUG_SSR 305 305 fprintf(stderr, "GetSSR-IGS START: size %d, numbits %d\n",(int)size, numbits); 306 306 #endif … … 323 323 G_RTCM_MESSAGE_NUMBER(rtcmtype) 324 324 G_IGS_SSR_VERSION(version) 325 #ifdef DEBUG325 #ifdef BNC_DEBUG_SSR 326 326 fprintf(stderr, "rtcmType %d igsVersion %d ", rtcmtype, version); 327 327 #endif 328 328 G_IGS_MESSAGE_NUMBER(igstype) 329 #ifdef DEBUG329 #ifdef BNC_DEBUG_SSR 330 330 fprintf(stderr, "igsType IM%d size %d\n", igstype,(int)sizeofrtcmblock); 331 331 #endif … … 346 346 G_VTEC_QUALITY_INDICATOR(v->Quality) 347 347 G_NO_IONO_LAYERS(v->NumLayers) 348 #ifdef DEBUG348 #ifdef BNC_DEBUG_SSR 349 349 fprintf(stderr, "epochTime %d ui %d mmi %d ssrIod %d providerId %d solId %d vtecQ %8.3f numLay %d \n", 350 350 v->EpochTime, v->UpdateInterval, mmi, … … 355 355 G_IONO_DEGREE(v->Layers[l].Degree) 356 356 G_IONO_ORDER(v->Layers[l].Order) 357 #ifdef DEBUG357 #ifdef BNC_DEBUG_SSR 358 358 fprintf(stderr, "h %8.3f deg %d ord %d \n", 359 359 v->Layers[l].Height, v->Layers[l].Degree, v->Layers[l].Order); … … 362 362 for (d = o; d <= v->Layers[l].Degree; ++d) { 363 363 G_IONO_COEFF_C(v->Layers[l].Cosinus[d][o]) 364 #ifdef DEBUG364 #ifdef BNC_DEBUG_SSR 365 365 fprintf(stderr, "C[%02d][%02d] %8.3f \n", 366 366 d, o, v->Layers[l].Cosinus[d][o]); … … 371 371 for (d = o; d <= v->Layers[l].Degree; ++d) { 372 372 G_IONO_COEFF_S(v->Layers[l].Sinus[d][o]) 373 #ifdef DEBUG373 #ifdef BNC_DEBUG_SSR 374 374 fprintf(stderr, "S[%02d][%02d] %8.3f \n", 375 375 d, o, v->Layers[l].Sinus[d][o]); … … 378 378 } 379 379 } 380 #ifdef DEBUG380 #ifdef BNC_DEBUG_SSR 381 381 for(igstype = 0; igstype < (unsigned int)size && (unsigned char)buffer[igstype] != 0xD3; ++igstype) 382 382 numbits += 8; … … 401 401 G_NO_OF_SATELLITES(nums) 402 402 co->Supplied[COBOFS_ORBIT] |= 1; 403 #ifdef DEBUG403 #ifdef BNC_DEBUG_SSR 404 404 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d rd %d ssrIod %d providerId %d solId %d\n", 405 405 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 424 424 G_DELTA_DOT_ALONG_TRACK(co->Sat[pos].Orbit.DotDeltaAlongTrack) 425 425 G_DELTA_DOT_CROSS_TRACK(co->Sat[pos].Orbit.DotDeltaCrossTrack) 426 #ifdef DEBUG426 #ifdef BNC_DEBUG_SSR 427 427 fprintf(stderr, "id %2d iod %3d dr %8.4f da %8.4f dc %8.4f dr %8.3f da %8.3f dc %8.3f\n", 428 428 co->Sat[pos].ID,co->Sat[pos].IOD,co->Sat[pos].Orbit.DeltaRadial, … … 446 446 G_NO_OF_SATELLITES(nums) 447 447 co->Supplied[COBOFS_CLOCK] |= 1; 448 #ifdef DEBUG448 #ifdef BNC_DEBUG_SSR 449 449 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 450 450 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 465 465 G_DELTA_CLOCK_C1(co->Sat[pos].Clock.DeltaA1) 466 466 G_DELTA_CLOCK_C2(co->Sat[pos].Clock.DeltaA2) 467 #ifdef DEBUG467 #ifdef BNC_DEBUG_SSR 468 468 fprintf(stderr, "id %2d c0 %8.3f c1 %8.3f c2 %8.3f\n", 469 469 co->Sat[pos].ID, co->Sat[pos].Clock.DeltaA0, co->Sat[pos].Clock.DeltaA1, … … 486 486 co->Supplied[COBOFS_ORBIT] |= 1; 487 487 co->Supplied[COBOFS_CLOCK] |= 1; 488 #ifdef DEBUG488 #ifdef BNC_DEBUG_SSR 489 489 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d rd %d ssrIod %d providerId %d solId %d\n", 490 490 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 512 512 G_DELTA_CLOCK_C1(co->Sat[pos].Clock.DeltaA1) 513 513 G_DELTA_CLOCK_C2(co->Sat[pos].Clock.DeltaA2) 514 #ifdef DEBUG514 #ifdef BNC_DEBUG_SSR 515 515 fprintf(stderr, "id %2d iod %3d dr %10.6f da %10.6f dc %10.6f dr %10.6f da %10.6f dc %10.6f c0 %10.6f c1 %10.6f c2 %10.6f\n", 516 516 co->Sat[pos].ID,co->Sat[pos].IOD,co->Sat[pos].Orbit.DeltaRadial, … … 534 534 G_NO_OF_SATELLITES(nums) 535 535 co->Supplied[COBOFS_URA] |= 1; 536 #ifdef DEBUG536 #ifdef BNC_DEBUG_SSR 537 537 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 538 538 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 551 551 co->Sat[pos].ID = id; 552 552 G_SSR_URA(co->Sat[pos].UserRangeAccuracy) 553 #ifdef DEBUG553 #ifdef BNC_DEBUG_SSR 554 554 fprintf(stderr, "id %2d ura %8.3f \n", 555 555 co->Sat[pos].ID, co->Sat[pos].UserRangeAccuracy); … … 569 569 G_NO_OF_SATELLITES(nums) 570 570 co->Supplied[COBOFS_HR] |= 1; 571 #ifdef DEBUG571 #ifdef BNC_DEBUG_SSR 572 572 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 573 573 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 586 586 co->Sat[pos].ID = id; 587 587 G_HR_CLOCK_CORRECTION(co->Sat[pos].hrclock) 588 #ifdef DEBUG588 #ifdef BNC_DEBUG_SSR 589 589 fprintf(stderr, "id %2d hrClock %8.3f \n", 590 590 co->Sat[pos].ID, co->Sat[pos].hrclock); … … 603 603 G_SSR_SOLUTION_ID(b->SSRSolutionID) 604 604 G_NO_OF_SATELLITES(nums) 605 #ifdef DEBUG605 #ifdef BNC_DEBUG_SSR 606 606 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 607 607 b->EpochTime[s], b->UpdateInterval,mmi,b->NumberOfSat[s],nums, … … 620 620 b->Sat[pos].ID = id; 621 621 G_NO_OF_BIASES(b->Sat[pos].NumberOfCodeBiases) 622 #ifdef DEBUG622 #ifdef BNC_DEBUG_SSR 623 623 fprintf(stderr, "id %2d #%d ", 624 624 b->Sat[pos].ID, b->Sat[pos].NumberOfCodeBiases); … … 627 627 G_GNSS_SIGNAL_IDENTIFIER(b->Sat[pos].Biases[j].Type) 628 628 G_CODE_BIAS(b->Sat[pos].Biases[j].Bias) 629 #ifdef DEBUG629 #ifdef BNC_DEBUG_SSR 630 630 fprintf(stderr, "t%02d b %8.2f ", 631 631 b->Sat[pos].Biases[j].Type, b->Sat[pos].Biases[j].Bias); 632 632 #endif 633 633 } 634 #ifdef DEBUG634 #ifdef BNC_DEBUG_SSR 635 635 fprintf(stderr, "\n"); 636 636 #endif … … 650 650 G_MW_CONSISTENCY_INDICATOR(pb->MWConsistencyIndicator) 651 651 G_NO_OF_SATELLITES(nums) 652 #ifdef DEBUG652 #ifdef BNC_DEBUG_SSR 653 653 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d dispInd %d mwInd %d\n", 654 654 pb->EpochTime[s], pb->UpdateInterval,mmi,pb->NumberOfSat[s],nums, … … 670 670 G_YAW_ANGLE(pb->Sat[pos].YawAngle) 671 671 G_YAW_RATE(pb->Sat[pos].YawRate) 672 #ifdef DEBUG672 #ifdef BNC_DEBUG_SSR 673 673 fprintf(stderr, "id %2d #%d y %10.6f yr %10.6f ", 674 674 pb->Sat[pos].ID, pb->Sat[pos].NumberOfPhaseBiases, … … 681 681 G_DISCONTINUITY_COUNTER(pb->Sat[pos].Biases[j].SignalDiscontinuityCounter) 682 682 G_PHASE_BIAS(pb->Sat[pos].Biases[j].Bias) 683 #ifdef DEBUG683 #ifdef BNC_DEBUG_SSR 684 684 fprintf(stderr, "t%02d int %d wl %d disc %02d b %8.4f ", 685 685 pb->Sat[pos].Biases[j].Type, … … 690 690 #endif 691 691 } 692 #ifdef DEBUG692 #ifdef BNC_DEBUG_SSR 693 693 fprintf(stderr, "\n"); 694 694 #endif … … 698 698 continue; 699 699 } 700 #ifdef DEBUG700 #ifdef BNC_DEBUG_SSR 701 701 for(igstype = 0; igstype < (unsigned int)size && (unsigned char)buffer[igstype] != 0xD3; ++igstype) 702 702 numbits += 8; -
trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm.cpp
r9029 r9210 482 482 return GCOBR_SHORTBUFFER; 483 483 484 #ifdef DEBUG484 #ifdef BNC_DEBUG_SSR 485 485 fprintf(stderr, "GetSSR-RTCM START: size %d, numbits %d\n",(int)size, numbits); 486 486 #endif … … 502 502 503 503 G_RTCM_MESSAGE_NUMBER(type) 504 #ifdef DEBUG504 #ifdef BNC_DEBUG_SSR 505 505 fprintf(stderr, "type %d size %d\n",type,(int)sizeofrtcmblock); 506 506 #endif … … 520 520 G_VTEC_QUALITY_INDICATOR(v->Quality) 521 521 G_NO_IONO_LAYERS(v->NumLayers) 522 #ifdef DEBUG522 #ifdef BNC_DEBUG_SSR 523 523 fprintf(stderr, "epochTime %d ui %d mmi %d ssrIod %d providerId %d solId %d vtecQ %8.3f numLay %d \n", 524 524 v->EpochTime, v->UpdateInterval, mmi, … … 529 529 G_IONO_DEGREE(v->Layers[l].Degree) 530 530 G_IONO_ORDER(v->Layers[l].Order) 531 #ifdef DEBUG531 #ifdef BNC_DEBUG_SSR 532 532 fprintf(stderr, "h %8.3f deg %d ord %d \n", 533 533 v->Layers[l].Height, v->Layers[l].Degree, v->Layers[l].Order); … … 536 536 for (d = o; d <= v->Layers[l].Degree; ++d) { 537 537 G_IONO_COEFF_C(v->Layers[l].Cosinus[d][o]) 538 #ifdef DEBUG538 #ifdef BNC_DEBUG_SSR 539 539 fprintf(stderr, "C[%02d][%02d] %8.3f \n", 540 540 d, o, v->Layers[l].Cosinus[d][o]); … … 545 545 for (d = o; d <= v->Layers[l].Degree; ++d) { 546 546 G_IONO_COEFF_S(v->Layers[l].Sinus[d][o]) 547 #ifdef DEBUG547 #ifdef BNC_DEBUG_SSR 548 548 fprintf(stderr, "S[%02d][%02d] %8.3f \n", 549 549 d, o, v->Layers[l].Sinus[d][o]); … … 552 552 } 553 553 } 554 #ifdef DEBUG554 #ifdef BNC_DEBUG_SSR 555 555 for(type = 0; type < (unsigned int)size && (unsigned char)buffer[type] != 0xD3; ++type) 556 556 numbits += 8; … … 584 584 G_MW_CONSISTENCY_INDICATOR(pb->MWConsistencyIndicator) 585 585 G_NO_OF_SATELLITES(nums) 586 #ifdef DEBUG586 #ifdef BNC_DEBUG_SSR 587 587 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d dispInd %d mwInd %d\n", 588 588 pb->EpochTime[s], pb->UpdateInterval,mmi,pb->NumberOfSat[s],nums, … … 617 617 G_YAW_ANGLE(pb->Sat[pos].YawAngle) 618 618 G_YAW_RATE(pb->Sat[pos].YawRate) 619 #ifdef DEBUG619 #ifdef BNC_DEBUG_SSR 620 620 fprintf(stderr, "id %2d #%d y %10.6f yr %10.6f ", 621 621 pb->Sat[pos].ID, pb->Sat[pos].NumberOfPhaseBiases, … … 630 630 pb->Sat[pos].Biases[j].SignalDiscontinuityCounter) 631 631 G_PHASE_BIAS(pb->Sat[pos].Biases[j].Bias) 632 #ifdef DEBUG632 #ifdef BNC_DEBUG_SSR 633 633 fprintf(stderr, "t%02d int %d wl %d disc %d b %8.4f ", 634 634 pb->Sat[pos].Biases[j].Type, … … 639 639 #endif 640 640 } 641 #ifdef DEBUG641 #ifdef BNC_DEBUG_SSR 642 642 fprintf(stderr, "\n"); 643 643 #endif 644 644 } 645 #ifdef DEBUG645 #ifdef BNC_DEBUG_SSR 646 646 for(type = 0; type < (unsigned int)size && (unsigned char)buffer[type] != 0xD3; ++type) 647 647 numbits += 8; … … 676 676 G_NO_OF_SATELLITES(nums) 677 677 co->Supplied[COBOFS_ORBIT] |= 1; 678 #ifdef DEBUG678 #ifdef BNC_DEBUG_SSR 679 679 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d rd %d ssrIod %d providerId %d solId %d\n", 680 680 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 732 732 G_DELTA_DOT_ALONG_TRACK(co->Sat[pos].Orbit.DotDeltaAlongTrack) 733 733 G_DELTA_DOT_CROSS_TRACK(co->Sat[pos].Orbit.DotDeltaCrossTrack) 734 #ifdef DEBUG734 #ifdef BNC_DEBUG_SSR 735 735 fprintf(stderr, "id %2d iod %3d dr %8.4f da %8.4f dc %8.4f dr %8.3f da %8.3f dc %8.3f\n", 736 736 co->Sat[pos].ID,co->Sat[pos].IOD,co->Sat[pos].Orbit.DeltaRadial, … … 765 765 G_NO_OF_SATELLITES(nums) 766 766 co->Supplied[COBOFS_CLOCK] |= 1; 767 #ifdef DEBUG767 #ifdef BNC_DEBUG_SSR 768 768 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 769 769 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 798 798 G_DELTA_CLOCK_C1(co->Sat[pos].Clock.DeltaA1) 799 799 G_DELTA_CLOCK_C2(co->Sat[pos].Clock.DeltaA2) 800 #ifdef DEBUG800 #ifdef BNC_DEBUG_SSR 801 801 fprintf(stderr, "id %2d c0 %8.3f c1 %8.3f c2 %8.3f\n", 802 802 co->Sat[pos].ID, co->Sat[pos].Clock.DeltaA0, co->Sat[pos].Clock.DeltaA1, … … 830 830 co->Supplied[COBOFS_ORBIT] |= 1; 831 831 co->Supplied[COBOFS_CLOCK] |= 1; 832 #ifdef DEBUG832 #ifdef BNC_DEBUG_SSR 833 833 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d rd %d ssrIod %d providerId %d solId %d\n", 834 834 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 889 889 G_DELTA_CLOCK_C1(co->Sat[pos].Clock.DeltaA1) 890 890 G_DELTA_CLOCK_C2(co->Sat[pos].Clock.DeltaA2) 891 #ifdef DEBUG891 #ifdef BNC_DEBUG_SSR 892 892 fprintf(stderr, "id %2d iod %3d dr %10.6f da %10.6f dc %10.6f dr %10.6f da %10.6f dc %10.6f c0 %10.6f c1 %10.6f c2 %10.6f\n", 893 893 co->Sat[pos].ID,co->Sat[pos].IOD,co->Sat[pos].Orbit.DeltaRadial, … … 922 922 G_NO_OF_SATELLITES(nums) 923 923 co->Supplied[COBOFS_URA] |= 1; 924 #ifdef DEBUG924 #ifdef BNC_DEBUG_SSR 925 925 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 926 926 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 952 952 co->Sat[pos].ID = id; 953 953 G_SSR_URA(co->Sat[pos].UserRangeAccuracy) 954 #ifdef DEBUG954 #ifdef BNC_DEBUG_SSR 955 955 fprintf(stderr, "id %2d ura %8.3f \n", 956 956 co->Sat[pos].ID, co->Sat[pos].UserRangeAccuracy); … … 981 981 G_NO_OF_SATELLITES(nums) 982 982 co->Supplied[COBOFS_HR] |= 1; 983 #ifdef DEBUG983 #ifdef BNC_DEBUG_SSR 984 984 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 985 985 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 1011 1011 co->Sat[pos].ID = id; 1012 1012 G_HR_CLOCK_CORRECTION(co->Sat[pos].hrclock) 1013 #ifdef DEBUG1013 #ifdef BNC_DEBUG_SSR 1014 1014 fprintf(stderr, "id %2d hrClock %8.3f \n", 1015 1015 co->Sat[pos].ID, co->Sat[pos].hrclock); … … 1039 1039 G_SSR_SOLUTION_ID(b->SSRSolutionID) 1040 1040 G_NO_OF_SATELLITES(nums) 1041 #ifdef DEBUG1041 #ifdef BNC_DEBUG_SSR 1042 1042 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 1043 1043 b->EpochTime[s], b->UpdateInterval,mmi,b->NumberOfSat[s],nums, … … 1069 1069 b->Sat[pos].ID = id; 1070 1070 G_NO_OF_BIASES(b->Sat[pos].NumberOfCodeBiases) 1071 #ifdef DEBUG1071 #ifdef BNC_DEBUG_SSR 1072 1072 fprintf(stderr, "id %2d #%d ", 1073 1073 b->Sat[pos].ID, b->Sat[pos].NumberOfCodeBiases); … … 1076 1076 G_GNSS_SIGNAL_IDENTIFIER(b->Sat[pos].Biases[j].Type) 1077 1077 G_CODE_BIAS(b->Sat[pos].Biases[j].Bias) 1078 #ifdef DEBUG1078 #ifdef BNC_DEBUG_SSR 1079 1079 fprintf(stderr, "t%02d b %8.2f ", 1080 1080 b->Sat[pos].Biases[j].Type, b->Sat[pos].Biases[j].Bias); 1081 1081 #endif 1082 1082 } 1083 #ifdef DEBUG1083 #ifdef BNC_DEBUG_SSR 1084 1084 fprintf(stderr, "\n"); 1085 1085 #endif … … 1089 1089 continue; 1090 1090 } 1091 #ifdef DEBUG1091 #ifdef BNC_DEBUG_SSR 1092 1092 for(type = 0; type < (unsigned int)size && (unsigned char)buffer[type] != 0xD3; ++type) 1093 1093 numbits += 8;
Note:
See TracChangeset
for help on using the changeset viewer.