Changeset 6554 in ntrip for trunk/clock_and_orbit/readco.c
- Timestamp:
- Jan 19, 2015, 11:51:09 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.