Changeset 9029 in ntrip
- Timestamp:
- Aug 26, 2020, 12:04:15 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
r9025 r9029 302 302 return GCOBR_SHORTBUFFER; 303 303 304 #ifdef BNC_DEBUG304 #ifdef DEBUG 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 BNC_DEBUG325 #ifdef DEBUG 326 326 fprintf(stderr, "rtcmType %d igsVersion %d ", rtcmtype, version); 327 327 #endif 328 328 G_IGS_MESSAGE_NUMBER(igstype) 329 329 fprintf(stderr, "igsType IM%03d ", igstype); 330 #ifdef BNC_DEBUG330 #ifdef DEBUG 331 331 fprintf(stderr, "igsType IM%d size %d\n", igstype,(int)sizeofrtcmblock); 332 332 #endif … … 347 347 G_VTEC_QUALITY_INDICATOR(v->Quality) 348 348 G_NO_IONO_LAYERS(v->NumLayers) 349 #ifdef BNC_DEBUG349 #ifdef DEBUG 350 350 fprintf(stderr, "epochTime %d ui %d mmi %d ssrIod %d providerId %d solId %d vtecQ %8.3f numLay %d \n", 351 351 v->EpochTime, v->UpdateInterval, mmi, … … 356 356 G_IONO_DEGREE(v->Layers[l].Degree) 357 357 G_IONO_ORDER(v->Layers[l].Order) 358 #ifdef BNC_DEBUG358 #ifdef DEBUG 359 359 fprintf(stderr, "h %8.3f deg %d ord %d \n", 360 360 v->Layers[l].Height, v->Layers[l].Degree, v->Layers[l].Order); … … 363 363 for (d = o; d <= v->Layers[l].Degree; ++d) { 364 364 G_IONO_COEFF_C(v->Layers[l].Cosinus[d][o]) 365 #ifdef BNC_DEBUG365 #ifdef DEBUG 366 366 fprintf(stderr, "C[%02d][%02d] %8.3f \n", 367 367 d, o, v->Layers[l].Cosinus[d][o]); … … 372 372 for (d = o; d <= v->Layers[l].Degree; ++d) { 373 373 G_IONO_COEFF_S(v->Layers[l].Sinus[d][o]) 374 #ifdef BNC_DEBUG374 #ifdef DEBUG 375 375 fprintf(stderr, "S[%02d][%02d] %8.3f \n", 376 376 d, o, v->Layers[l].Sinus[d][o]); … … 379 379 } 380 380 } 381 #ifdef BNC_DEBUG381 #ifdef DEBUG 382 382 for(igstype = 0; igstype < (unsigned int)size && (unsigned char)buffer[igstype] != 0xD3; ++igstype) 383 383 numbits += 8; … … 402 402 G_NO_OF_SATELLITES(nums) 403 403 co->Supplied[COBOFS_ORBIT] |= 1; 404 #ifdef BNC_DEBUG404 #ifdef DEBUG 405 405 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d rd %d ssrIod %d providerId %d solId %d\n", 406 406 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 425 425 G_DELTA_DOT_ALONG_TRACK(co->Sat[pos].Orbit.DotDeltaAlongTrack) 426 426 G_DELTA_DOT_CROSS_TRACK(co->Sat[pos].Orbit.DotDeltaCrossTrack) 427 #ifdef BNC_DEBUG427 #ifdef DEBUG 428 428 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", 429 429 co->Sat[pos].ID,co->Sat[pos].IOD,co->Sat[pos].Orbit.DeltaRadial, … … 447 447 G_NO_OF_SATELLITES(nums) 448 448 co->Supplied[COBOFS_CLOCK] |= 1; 449 #ifdef BNC_DEBUG449 #ifdef DEBUG 450 450 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 451 451 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 466 466 G_DELTA_CLOCK_C1(co->Sat[pos].Clock.DeltaA1) 467 467 G_DELTA_CLOCK_C2(co->Sat[pos].Clock.DeltaA2) 468 #ifdef BNC_DEBUG468 #ifdef DEBUG 469 469 fprintf(stderr, "id %2d c0 %8.3f c1 %8.3f c2 %8.3f\n", 470 470 co->Sat[pos].ID, co->Sat[pos].Clock.DeltaA0, co->Sat[pos].Clock.DeltaA1, … … 487 487 co->Supplied[COBOFS_ORBIT] |= 1; 488 488 co->Supplied[COBOFS_CLOCK] |= 1; 489 #ifdef BNC_DEBUG489 #ifdef DEBUG 490 490 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d rd %d ssrIod %d providerId %d solId %d\n", 491 491 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 513 513 G_DELTA_CLOCK_C1(co->Sat[pos].Clock.DeltaA1) 514 514 G_DELTA_CLOCK_C2(co->Sat[pos].Clock.DeltaA2) 515 #ifdef BNC_DEBUG515 #ifdef DEBUG 516 516 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", 517 517 co->Sat[pos].ID,co->Sat[pos].IOD,co->Sat[pos].Orbit.DeltaRadial, … … 535 535 G_NO_OF_SATELLITES(nums) 536 536 co->Supplied[COBOFS_URA] |= 1; 537 #ifdef BNC_DEBUG537 #ifdef DEBUG 538 538 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 539 539 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 552 552 co->Sat[pos].ID = id; 553 553 G_SSR_URA(co->Sat[pos].UserRangeAccuracy) 554 #ifdef BNC_DEBUG554 #ifdef DEBUG 555 555 fprintf(stderr, "id %2d ura %8.3f \n", 556 556 co->Sat[pos].ID, co->Sat[pos].UserRangeAccuracy); … … 570 570 G_NO_OF_SATELLITES(nums) 571 571 co->Supplied[COBOFS_HR] |= 1; 572 #ifdef BNC_DEBUG572 #ifdef DEBUG 573 573 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 574 574 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 587 587 co->Sat[pos].ID = id; 588 588 G_HR_CLOCK_CORRECTION(co->Sat[pos].hrclock) 589 #ifdef BNC_DEBUG589 #ifdef DEBUG 590 590 fprintf(stderr, "id %2d hrClock %8.3f \n", 591 591 co->Sat[pos].ID, co->Sat[pos].hrclock); … … 604 604 G_SSR_SOLUTION_ID(b->SSRSolutionID) 605 605 G_NO_OF_SATELLITES(nums) 606 #ifdef BNC_DEBUG606 #ifdef DEBUG 607 607 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 608 608 b->EpochTime[s], b->UpdateInterval,mmi,b->NumberOfSat[s],nums, … … 621 621 b->Sat[pos].ID = id; 622 622 G_NO_OF_BIASES(b->Sat[pos].NumberOfCodeBiases) 623 #ifdef BNC_DEBUG623 #ifdef DEBUG 624 624 fprintf(stderr, "id %2d #%d ", 625 625 b->Sat[pos].ID, b->Sat[pos].NumberOfCodeBiases); … … 628 628 G_GNSS_SIGNAL_IDENTIFIER(b->Sat[pos].Biases[j].Type) 629 629 G_CODE_BIAS(b->Sat[pos].Biases[j].Bias) 630 #ifdef BNC_DEBUG630 #ifdef DEBUG 631 631 fprintf(stderr, "t%02d b %8.2f ", 632 632 b->Sat[pos].Biases[j].Type, b->Sat[pos].Biases[j].Bias); 633 633 #endif 634 634 } 635 #ifdef BNC_DEBUG635 #ifdef DEBUG 636 636 fprintf(stderr, "\n"); 637 637 #endif … … 651 651 G_MW_CONSISTENCY_INDICATOR(pb->MWConsistencyIndicator) 652 652 G_NO_OF_SATELLITES(nums) 653 #ifdef BNC_DEBUG653 #ifdef DEBUG 654 654 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d dispInd %d mwInd %d\n", 655 655 pb->EpochTime[s], pb->UpdateInterval,mmi,pb->NumberOfSat[s],nums, … … 671 671 G_YAW_ANGLE(pb->Sat[pos].YawAngle) 672 672 G_YAW_RATE(pb->Sat[pos].YawRate) 673 #ifdef BNC_DEBUG673 #ifdef DEBUG 674 674 fprintf(stderr, "id %2d #%d y %10.6f yr %10.6f ", 675 675 pb->Sat[pos].ID, pb->Sat[pos].NumberOfPhaseBiases, … … 682 682 G_DISCONTINUITY_COUNTER(pb->Sat[pos].Biases[j].SignalDiscontinuityCounter) 683 683 G_PHASE_BIAS(pb->Sat[pos].Biases[j].Bias) 684 #ifdef BNC_DEBUG684 #ifdef DEBUG 685 685 fprintf(stderr, "t%02d int %d wl %d disc %02d b %8.4f ", 686 686 pb->Sat[pos].Biases[j].Type, … … 691 691 #endif 692 692 } 693 #ifdef BNC_DEBUG693 #ifdef DEBUG 694 694 fprintf(stderr, "\n"); 695 695 #endif … … 699 699 continue; 700 700 } 701 #ifdef BNC_DEBUG701 #ifdef DEBUG 702 702 for(igstype = 0; igstype < (unsigned int)size && (unsigned char)buffer[igstype] != 0xD3; ++igstype) 703 703 numbits += 8; -
trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm.cpp
r9025 r9029 482 482 return GCOBR_SHORTBUFFER; 483 483 484 #ifdef BNC_DEBUG484 #ifdef DEBUG 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 BNC_DEBUG504 #ifdef DEBUG 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 BNC_DEBUG522 #ifdef DEBUG 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 BNC_DEBUG531 #ifdef DEBUG 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 BNC_DEBUG538 #ifdef DEBUG 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 BNC_DEBUG547 #ifdef DEBUG 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 BNC_DEBUG554 #ifdef DEBUG 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 BNC_DEBUG586 #ifdef DEBUG 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 BNC_DEBUG619 #ifdef DEBUG 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 BNC_DEBUG632 #ifdef DEBUG 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 BNC_DEBUG641 #ifdef DEBUG 642 642 fprintf(stderr, "\n"); 643 643 #endif 644 644 } 645 #ifdef BNC_DEBUG645 #ifdef DEBUG 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 BNC_DEBUG678 #ifdef DEBUG 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 BNC_DEBUG734 #ifdef DEBUG 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 BNC_DEBUG767 #ifdef DEBUG 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 BNC_DEBUG800 #ifdef DEBUG 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 BNC_DEBUG832 #ifdef DEBUG 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 BNC_DEBUG891 #ifdef DEBUG 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 BNC_DEBUG924 #ifdef DEBUG 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 BNC_DEBUG954 #ifdef DEBUG 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 BNC_DEBUG983 #ifdef DEBUG 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 BNC_DEBUG1013 #ifdef DEBUG 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 BNC_DEBUG1041 #ifdef DEBUG 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 BNC_DEBUG1071 #ifdef DEBUG 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 BNC_DEBUG1078 #ifdef DEBUG 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 BNC_DEBUG1083 #ifdef DEBUG 1084 1084 fprintf(stderr, "\n"); 1085 1085 #endif … … 1089 1089 continue; 1090 1090 } 1091 #ifdef BNC_DEBUG1091 #ifdef DEBUG 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.