Changeset 1831 in ntrip for trunk/BNS/RTCM
- Timestamp:
- May 6, 2009, 7:58:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/RTCM/clock_orbit_rtcm.c
r1827 r1831 3 3 Name: clock_orbit_rtcm.c 4 4 Project: RTCM3 5 Version: $Id: clock_orbit_rtcm.c,v 1. 6 2009/05/04 12:53:42stoecker Exp $5 Version: $Id: clock_orbit_rtcm.c,v 1.13 2009/05/06 14:02:39 stoecker Exp $ 6 6 Authors: Dirk Stöcker 7 7 Description: state space approach for RTCM3 … … 618 618 G_RESERVED5 619 619 G_NO_OF_SATELLITES(co->NumberOfGPSSat) 620 if(co->OrbitDataSupplied )621 return GCOBR_DATAMISMATCH; 622 co->OrbitDataSupplied = 1;620 if(co->OrbitDataSupplied&1) 621 return GCOBR_DATAMISMATCH; 622 co->OrbitDataSupplied |= 1; 623 623 #ifdef DEBUG 624 624 fprintf(stderr, "epochtime %d ui %d mmi %d sats %d\n",co->GPSEpochTime,co->UpdateInterval,mmi,co->NumberOfGPSSat); … … 663 663 G_RESERVED5 664 664 G_NO_OF_SATELLITES(co->NumberOfGPSSat) 665 if(co->ClockDataSupplied )666 return GCOBR_DATAMISMATCH; 667 co->ClockDataSupplied = 1;665 if(co->ClockDataSupplied & 1) 666 return GCOBR_DATAMISMATCH; 667 co->ClockDataSupplied |= 1; 668 668 for(i = 0; i < co->NumberOfGPSSat; ++i) 669 669 { … … 683 683 G_RESERVED5 684 684 G_NO_OF_SATELLITES(co->NumberOfGPSSat) 685 if( co->ClockDataSupplied || co->OrbitDataSupplied)686 return GCOBR_DATAMISMATCH; 687 co->OrbitDataSupplied = 1;688 co->ClockDataSupplied = 1;685 if((co->ClockDataSupplied&1) || (co->OrbitDataSupplied&1)) 686 return GCOBR_DATAMISMATCH; 687 co->OrbitDataSupplied |= 1; 688 co->ClockDataSupplied |= 1; 689 689 for(i = 0; i < co->NumberOfGPSSat; ++i) 690 690 { … … 715 715 G_RESERVED5 716 716 G_NO_OF_SATELLITES(co->NumberOfGPSSat) 717 if(co->URADataSupplied )718 return GCOBR_DATAMISMATCH; 719 co->URADataSupplied = 1;717 if(co->URADataSupplied&1) 718 return GCOBR_DATAMISMATCH; 719 co->URADataSupplied |= 1; 720 720 for(i = 0; i < co->NumberOfGPSSat; ++i) 721 721 { … … 733 733 G_RESERVED5 734 734 G_NO_OF_SATELLITES(co->NumberOfGPSSat) 735 if(co->HRDataSupplied )736 return GCOBR_DATAMISMATCH; 737 co->HRDataSupplied = 1;735 if(co->HRDataSupplied&1) 736 return GCOBR_DATAMISMATCH; 737 co->HRDataSupplied |= 1; 738 738 for(i = 0; i < co->NumberOfGPSSat; ++i) 739 739 { … … 749 749 G_RESERVED5 750 750 G_NO_OF_SATELLITES(co->NumberOfGLONASSSat) 751 if(co->OrbitDataSupplied )752 return GCOBR_DATAMISMATCH; 753 co->OrbitDataSupplied = 1;751 if(co->OrbitDataSupplied&2) 752 return GCOBR_DATAMISMATCH; 753 co->OrbitDataSupplied |= 2; 754 754 for(i = CLOCKORBIT_NUMGPS; 755 755 i < CLOCKORBIT_NUMGPS+co->NumberOfGLONASSSat; ++i) … … 777 777 G_RESERVED5 778 778 G_NO_OF_SATELLITES(co->NumberOfGLONASSSat) 779 if(co->ClockDataSupplied )780 return GCOBR_DATAMISMATCH; 781 co->ClockDataSupplied = 1;779 if(co->ClockDataSupplied&2) 780 return GCOBR_DATAMISMATCH; 781 co->ClockDataSupplied |= 2; 782 782 for(i = CLOCKORBIT_NUMGPS; 783 783 i < CLOCKORBIT_NUMGPS+co->NumberOfGLONASSSat; ++i) … … 796 796 G_RESERVED5 797 797 G_NO_OF_SATELLITES(co->NumberOfGLONASSSat) 798 if( co->ClockDataSupplied || co->OrbitDataSupplied)799 return GCOBR_DATAMISMATCH; 800 co->OrbitDataSupplied = 1;801 co->ClockDataSupplied = 1;798 if((co->ClockDataSupplied&2) || (co->OrbitDataSupplied&2)) 799 return GCOBR_DATAMISMATCH; 800 co->OrbitDataSupplied |= 2; 801 co->ClockDataSupplied |= 2; 802 802 for(i = CLOCKORBIT_NUMGPS; 803 803 i < CLOCKORBIT_NUMGPS+co->NumberOfGLONASSSat; ++i) … … 827 827 G_RESERVED5 828 828 G_NO_OF_SATELLITES(co->NumberOfGLONASSSat) 829 if(co->URADataSupplied )830 return GCOBR_DATAMISMATCH; 831 co->URADataSupplied = 1;829 if(co->URADataSupplied&2) 830 return GCOBR_DATAMISMATCH; 831 co->URADataSupplied |= 2; 832 832 for(i = CLOCKORBIT_NUMGPS; 833 833 i < CLOCKORBIT_NUMGPS+co->NumberOfGLONASSSat; ++i) … … 844 844 G_RESERVED5 845 845 G_NO_OF_SATELLITES(co->NumberOfGLONASSSat) 846 if(co->HRDataSupplied )847 return GCOBR_DATAMISMATCH; 848 co->HRDataSupplied = 1;846 if(co->HRDataSupplied&2) 847 return GCOBR_DATAMISMATCH; 848 co->HRDataSupplied |= 2; 849 849 for(i = CLOCKORBIT_NUMGPS; 850 850 i < CLOCKORBIT_NUMGPS+co->NumberOfGLONASSSat; ++i) … … 900 900 OLD_G_RESERVED6 901 901 OLD_G_NO_OF_SATELLITES(co->NumberOfGPSSat) 902 if(co->OrbitDataSupplied )903 return GCOBR_DATAMISMATCH; 904 co->OrbitDataSupplied = 1;902 if(co->OrbitDataSupplied&1) 903 return GCOBR_DATAMISMATCH; 904 co->OrbitDataSupplied |= 1; 905 905 for(i = 0; i < co->NumberOfGPSSat; ++i) 906 906 { … … 928 928 OLD_G_RESERVED6 929 929 OLD_G_NO_OF_SATELLITES(co->NumberOfGPSSat) 930 if(co->ClockDataSupplied )931 return GCOBR_DATAMISMATCH; 932 co->ClockDataSupplied = 1;930 if(co->ClockDataSupplied&1) 931 return GCOBR_DATAMISMATCH; 932 co->ClockDataSupplied |= 1; 933 933 for(i = 0; i < co->NumberOfGPSSat; ++i) 934 934 { … … 948 948 OLD_G_RESERVED6 949 949 OLD_G_NO_OF_SATELLITES(co->NumberOfGPSSat) 950 if( co->ClockDataSupplied || co->OrbitDataSupplied)951 return GCOBR_DATAMISMATCH; 952 co->OrbitDataSupplied = 1;953 co->ClockDataSupplied = 1;950 if((co->ClockDataSupplied&1) || (co->OrbitDataSupplied&1)) 951 return GCOBR_DATAMISMATCH; 952 co->OrbitDataSupplied |= 1; 953 co->ClockDataSupplied |= 1; 954 954 for(i = 0; i < co->NumberOfGPSSat; ++i) 955 955 { … … 978 978 OLD_G_RESERVED6 979 979 OLD_G_NO_OF_SATELLITES(co->NumberOfGLONASSSat) 980 if(co->OrbitDataSupplied )981 return GCOBR_DATAMISMATCH; 982 co->OrbitDataSupplied = 1;980 if(co->OrbitDataSupplied&2) 981 return GCOBR_DATAMISMATCH; 982 co->OrbitDataSupplied |= 2; 983 983 for(i = CLOCKORBIT_NUMGPS; 984 984 i < CLOCKORBIT_NUMGPS+co->NumberOfGLONASSSat; ++i) … … 1005 1005 OLD_G_RESERVED6 1006 1006 OLD_G_NO_OF_SATELLITES(co->NumberOfGLONASSSat) 1007 if(co->ClockDataSupplied )1008 return GCOBR_DATAMISMATCH; 1009 co->ClockDataSupplied = 1;1007 if(co->ClockDataSupplied&2) 1008 return GCOBR_DATAMISMATCH; 1009 co->ClockDataSupplied |= 2; 1010 1010 for(i = CLOCKORBIT_NUMGPS; 1011 1011 i < CLOCKORBIT_NUMGPS+co->NumberOfGLONASSSat; ++i) … … 1024 1024 OLD_G_RESERVED6 1025 1025 OLD_G_NO_OF_SATELLITES(co->NumberOfGLONASSSat) 1026 if( co->ClockDataSupplied || co->OrbitDataSupplied)1027 return GCOBR_DATAMISMATCH; 1028 co->OrbitDataSupplied = 1;1029 co->ClockDataSupplied = 1;1026 if((co->ClockDataSupplied&2) || (co->OrbitDataSupplied&2)) 1027 return GCOBR_DATAMISMATCH; 1028 co->OrbitDataSupplied |= 2; 1029 co->ClockDataSupplied |= 2; 1030 1030 for(i = CLOCKORBIT_NUMGPS; 1031 1031 i < CLOCKORBIT_NUMGPS+co->NumberOfGLONASSSat; ++i)
Note:
See TracChangeset
for help on using the changeset viewer.