Changeset 6554 in ntrip
- Timestamp:
- Jan 19, 2015, 11:51:09 AM (10 years ago)
- Location:
- trunk/clock_and_orbit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/clock_and_orbit/makefile
r6209 r6554 1 1 all: readco readVtec readRTCM3 2 CC = gcc 3 CXX = g++ 4 DEFINES = -DNO_RTCM3_MAIN 5 CFLAGS = -ggdb $(DEFINES) 6 CXXFLAGS = -ggdb $(DEFINES) 2 CC = gcc 3 CXX = g++ 4 DEFINES = -DNO_RTCM3_MAIN 5 CFLAGS = -ggdb -Wall $(DEFINES) -I lib 6 CFLAGSR = $(CFLAGS) -I ../rtcm3torinex/lib/ -DNO_RTCM3_MAIN 7 LFLAGS = -ggdb -lm 8 CXXFLAGS = -ggdb -Wall $(DEFINES) -I lib 9 CXXFLAGSR = $(CXXFLAGS) -I ../rtcm3torinex/lib/ 10 CXXFLAGSRL = $(CXXFLAGSR) -lm 7 11 8 12 clock_orbit_rtcm.o: lib/clock_orbit_rtcm.c 9 $(CC) -c $(CFLAGS) -o $@ $< -I lib13 $(CC) -c $(CFLAGS) -o $@ $< 10 14 11 rtcm3torinex.o: lib/rtcm3torinex.c 12 $(CC) -c $(CFLAGS) -o $@ $< -I lib 13 15 rtcm3torinex.o: ../rtcm3torinex/lib/rtcm3torinex.c 16 $(CC) -c $(CFLAGSR) -o $@ $< 14 17 15 18 readco.o: readco.c clock_orbit_rtcm.o 16 $(CC) -c $(CFLAGS) $< -I lib19 $(CC) -c $(CFLAGS) -o $@ $< 17 20 18 21 readVtec.o: readVtec.c 19 $(CC) -c $(CFLAGS) $< -I lib22 $(CC) -c $(CFLAGS) -o $@ $< 20 23 21 24 readRTCM3.o: readRTCM3.cpp 22 $(CXX) -c $(CXXFLAGS) $< -I lib 23 25 $(CXX) -c $(CXXFLAGSR) $< -I lib 24 26 25 27 readco: readco.o clock_orbit_rtcm.o 26 $(CC) $( CFLAGS) -lm-o $@ readco.o clock_orbit_rtcm.o28 $(CC) $(LFLAGS) -o $@ readco.o clock_orbit_rtcm.o 27 29 28 30 readVtec: readVtec.o clock_orbit_rtcm.o 29 $(CC) $( CFLAGS) -lm-o $@ readVtec.o clock_orbit_rtcm.o31 $(CC) $(LFLAGS) -o $@ readVtec.o clock_orbit_rtcm.o 30 32 31 33 readRTCM3: readRTCM3.o clock_orbit_rtcm.o rtcm3torinex.o 32 $(CXX) $(CXXFLAGS) -lm -o $@ readRTCM3.o clock_orbit_rtcm.o rtcm3torinex.o 33 34 $(CXX) $(CXXFLAGSRL) -o $@ readRTCM3.o clock_orbit_rtcm.o rtcm3torinex.o 34 35 35 36 clean: -
trunk/clock_and_orbit/readco.c
r5669 r6554 4 4 #include <string.h> 5 5 #include <stdlib.h> 6 #include <unistd.h> 6 7 #include <math.h> 7 8 … … 18 19 19 20 void printClockOrbit(const char* filename, struct ClockOrbit* clockOrb, 20 c har* flag, int ind, char satSys, int offsetGnss);21 const char* flag, int ind, char satSys, int offsetGnss); 21 22 void printClockOrbitDiff(const char* filename, struct ClockOrbit* clockOrb1, 22 struct ClockOrbit* clockOrb2, c har* flag, int ind, char satSys, int offsetGnss);23 struct ClockOrbit* clockOrb2, const char* flag, int ind, char satSys, int offsetGnss); 23 24 void printCodeBias(const char* filename, struct CodeBias* codeBias, 24 c har* flag,int ind, char satSys, int offsetGnss);25 const char* flag,int ind, char satSys, int offsetGnss); 25 26 void printCodeBiasDiff(const char* filename, struct CodeBias* codeBias1, 26 struct CodeBias* codeBias2, c har* flag, int ind, char satSys,27 struct CodeBias* codeBias2, const char* flag, int ind, char satSys, 27 28 int offsetGnss); 28 29 29 30 int main(void) { 30 enum COR_SATSYSTEMsys;31 c har* inputFile = "ssr1_cocb_data/CLK801330.14C";31 SATSYS sys; 32 const char * inputFile = "ssr1_cocb_data/CLK801330.14C"; 32 33 for (sys = GPS; sys <= BDS; ++sys) { 33 c har *outFilenameRaw, *outFilenameDbg;34 const char *outFilenameRaw, *outFilenameDbg; 34 35 enum COR_SATSYSTEM CLOCKORBIT_SATGNSS = sys; 35 36 enum COR_OFFSETS CLOCKORBIT_OFFSETGNSS; … … 84 85 double cbValue[3] = { 0.0 }, clock_a0 = 0.0, clock_a1 = 0.0, clock_a2 = 0.0, d_radial = 0.0; 85 86 double d_along = 0.0, d_outofplane = 0.0, dd_radial = 0.0, dd_along = 0.0, dd_outofplane = 0.0; 86 enum CodeTypecbType[3] = { 0 };87 int cbType[3] = { 0 }; 87 88 static double tow_co, tow_cb; 88 int num =sscanf(buffer, "%d ", &messageType);89 sscanf(buffer, "%d ", &messageType); 89 90 if (messageType == messageTypeCo[GPS]) { 90 91 sscanf(buffer, … … 270 271 } 271 272 free(buffer); 272 close(asciiSsr);273 fclose(asciiSsr); 273 274 } 274 275 return 0; … … 276 277 277 278 void printClockOrbit(const char* filename, struct ClockOrbit* clockOrb, 278 c har* flag, int ind, char satSys, int offsetGnss) {279 const char* flag, int ind, char satSys, int offsetGnss) { 279 280 int i = 0; 280 281 FILE *filestream = fopen(filename, "ab+"); … … 306 307 307 308 void printClockOrbitDiff(const char* filename, struct ClockOrbit* clockOrb1, 308 struct ClockOrbit* clockOrb2, c har* flag, int ind, char satSys,309 struct ClockOrbit* clockOrb2, const char* flag, int ind, char satSys, 309 310 int offsetGnss) { 310 311 int i = 0; … … 349 350 } 350 351 351 void printCodeBias(const char* filename, struct CodeBias* codeBias, c har* flag,352 void printCodeBias(const char* filename, struct CodeBias* codeBias, const char* flag, 352 353 int ind, char satSys, int offsetGnss) { 353 354 int i = 0; … … 375 376 376 377 void printCodeBiasDiff(const char* filename, struct CodeBias* codeBias1, 377 struct CodeBias* codeBias2, c har* flag, int ind, char satSys,378 struct CodeBias* codeBias2, const char* flag, int ind, char satSys, 378 379 int offsetGnss) { 379 380 int i = 0;
Note:
See TracChangeset
for help on using the changeset viewer.