Changeset 2323 in ntrip
- Timestamp:
- Feb 22, 2010, 2:42:26 PM (15 years ago)
- Location:
- trunk/clock_and_orbit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/clock_and_orbit/clock_orbit_rtcm.c
r1842 r2323 3 3 Name: clock_orbit_rtcm.c 4 4 Project: RTCM3 5 Version: $Id: clock_orbit_rtcm.c,v 1. 15 2009/05/14 13:24:13stoecker Exp $5 Version: $Id: clock_orbit_rtcm.c,v 1.8 2009/05/14 13:24:41 stoecker Exp $ 6 6 Authors: Dirk Stöcker 7 7 Description: state space approach for RTCM3 … … 10 10 #include <stdio.h> 11 11 #include <string.h> 12 #ifndef sparc 12 13 #include <stdint.h> 14 #else 15 #include <sys/types.h> 16 #endif 13 17 #include "clock_orbit_rtcm.h" 14 18 … … 227 231 left = nums - 28; 228 232 nums = 28; 233 } 234 else 235 { 236 left = 0; 229 237 } 230 238 while(nums) … … 420 428 int moremessagesfollow, char *buffer, size_t size) 421 429 { 422 int gps , glo, mmi, i, j;430 int gps=0, glo=0, mmi, i, j; 423 431 424 432 STARTDATA … … 600 608 case COTYPE_GPSORBIT: 601 609 if(!co) return GCOBR_NOCLOCKORBITPARAMETER; 610 co->messageType = COTYPE_GPSORBIT; 602 611 G_GPS_EPOCH_TIME(co->GPSEpochTime, co->NumberOfGPSSat) 603 612 co->epochGPS[co->epochSize] = co->GPSEpochTime; /* Weber, for latency */ … … 650 659 case COTYPE_GPSCLOCK: 651 660 if(!co) return GCOBR_NOCLOCKORBITPARAMETER; 661 co->messageType = COTYPE_GPSCLOCK; 652 662 G_GPS_EPOCH_TIME(co->GPSEpochTime, co->NumberOfGPSSat) 653 663 co->epochGPS[co->epochSize] = co->GPSEpochTime; /* Weber, for latency */ … … 683 693 case COTYPE_GPSCOMBINED: 684 694 if(!co) return -5; 695 co->messageType = COTYPE_GPSCOMBINED; 685 696 G_GPS_EPOCH_TIME(co->GPSEpochTime, co->NumberOfGPSSat) 686 697 co->epochGPS[co->epochSize] = co->GPSEpochTime; /* Weber, for latency */ … … 720 731 case COTYPE_GPSURA: 721 732 if(!co) return GCOBR_NOCLOCKORBITPARAMETER; 733 co->messageType = COTYPE_GPSURA; 722 734 G_GPS_EPOCH_TIME(co->GPSEpochTime, co->NumberOfGPSSat) 723 735 co->epochGPS[co->epochSize] = co->GPSEpochTime; /* Weber, for latency */ … … 741 753 case COTYPE_GPSHR: 742 754 if(!co) return GCOBR_NOCLOCKORBITPARAMETER; 755 co->messageType = COTYPE_GPSHR; 743 756 G_GPS_EPOCH_TIME(co->GPSEpochTime, co->NumberOfGPSSat) 744 757 co->epochGPS[co->epochSize] = co->GPSEpochTime; /* Weber, for latency */ … … 763 776 case COTYPE_GLONASSORBIT: 764 777 if(!co) return GCOBR_NOCLOCKORBITPARAMETER; 778 co->messageType = COTYPE_GLONASSORBIT; 765 779 G_GLONASS_EPOCH_TIME(co->GLONASSEpochTime, co->NumberOfGLONASSSat) 766 780 G_SSR_UPDATE_INTERVAL(co->UpdateInterval) … … 811 825 case COTYPE_GLONASSCLOCK: 812 826 if(!co) return GCOBR_NOCLOCKORBITPARAMETER; 827 co->messageType = COTYPE_GLONASSCLOCK; 813 828 G_GLONASS_EPOCH_TIME(co->GLONASSEpochTime, co->NumberOfGLONASSSat) 814 829 G_SSR_UPDATE_INTERVAL(co->UpdateInterval) … … 842 857 case COTYPE_GLONASSCOMBINED: 843 858 if(!co) return GCOBR_NOCLOCKORBITPARAMETER; 859 co->messageType = COTYPE_GLONASSCOMBINED; 844 860 G_GLONASS_EPOCH_TIME(co->GLONASSEpochTime, co->NumberOfGLONASSSat) 845 861 G_SSR_UPDATE_INTERVAL(co->UpdateInterval) … … 877 893 case COTYPE_GLONASSURA: 878 894 if(!co) return GCOBR_NOCLOCKORBITPARAMETER; 895 co->messageType = COTYPE_GLONASSURA; 879 896 G_GLONASS_EPOCH_TIME(co->GLONASSEpochTime, co->NumberOfGLONASSSat) 880 897 G_MULTIPLE_MESSAGE_INDICATOR(mmi) … … 896 913 case COTYPE_GLONASSHR: 897 914 if(!co) return GCOBR_NOCLOCKORBITPARAMETER; 915 co->messageType = COTYPE_GLONASSHR; 898 916 G_GLONASS_EPOCH_TIME(co->GLONASSEpochTime, co->NumberOfGLONASSSat) 899 917 G_SSR_UPDATE_INTERVAL(co->UpdateInterval) … … 916 934 case BTYPE_GPS: 917 935 if(!b) return GCOBR_NOBIASPARAMETER; 936 b->messageType = BTYPE_GPS; 918 937 G_GPS_EPOCH_TIME(b->GPSEpochTime, b->NumberOfGPSSat) 919 938 G_SSR_UPDATE_INTERVAL(b->UpdateInterval) … … 940 959 case BTYPE_GLONASS: 941 960 if(!b) return GCOBR_NOBIASPARAMETER; 961 b->messageType = BTYPE_GLONASS; 942 962 G_GLONASS_EPOCH_TIME(b->GLONASSEpochTime, b->NumberOfGLONASSSat) 943 963 G_SSR_UPDATE_INTERVAL(b->UpdateInterval) -
trunk/clock_and_orbit/clock_orbit_rtcm.h
r1842 r2323 6 6 Name: clock_orbit_rtcm.h 7 7 Project: RTCM3 8 Version: $Id: clock_orbit_rtcm.h,v 1. 11 2009/05/14 13:24:13stoecker Exp $8 Version: $Id: clock_orbit_rtcm.h,v 1.6 2009/05/14 13:24:41 stoecker Exp $ 9 9 Authors: Dirk Stöcker 10 10 Description: state space approach for RTCM3 … … 50 50 struct ClockOrbit 51 51 { 52 enum ClockOrbitType messageType; 52 53 int GPSEpochTime; /* 0 .. 604799 s */ 53 54 int GLONASSEpochTime; /* 0 .. 86399 s (86400 for leap second) */ … … 91 92 struct Bias 92 93 { 94 enum BiasType messageType; 93 95 int GPSEpochTime; /* 0 .. 604799 s */ 94 96 int GLONASSEpochTime; /* 0 .. 86399 s (86400 for leap second) */
Note:
See TracChangeset
for help on using the changeset viewer.