Changeset 4438 in ntrip for trunk/rtcm3torinex
- Timestamp:
- Jul 24, 2012, 6:07:02 PM (12 years ago)
- Location:
- trunk/rtcm3torinex/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/rtcm3torinex/lib/rtcm3torinexsupport.c
r4437 r4438 25 25 */ 26 26 27 #include "rtcm3torinex support.h"27 #include "rtcm3torinex.h" 28 28 29 29 int rrinex3codetoentry(const char *code) … … 75 75 return res; 76 76 } 77 78 std::string entry2rinexcode(const char* codetype[GNSS_MAXSATS][GNSSENTRY_NUMBER],79 int iSat, int iEntry) {80 char str[3];81 switch(iEntry&3) {82 case GNSSENTRY_CODE: str[0] = 'C'; break;83 case GNSSENTRY_PHASE: str[0] = 'L'; break;84 case GNSSENTRY_DOPPLER: str[0] = 'D'; break;85 case GNSSENTRY_SNR: str[0] = 'S'; break;86 }87 str[1] = codetype[iSat][iEntry][0];88 str[2] = codetype[iSat][iEntry][1];89 return std::string(str);90 } -
trunk/rtcm3torinex/lib/rtcm3torinexsupport.h
r4435 r4438 23 23 */ 24 24 25 #include <string>26 extern "C" {27 #include "rtcm3torinex.h"28 }29 30 25 int rrinex3codetoentry(const char *code); 31 26 32 std::string entry2rinexcode(const char* codetype[GNSS_MAXSATS][GNSSENTRY_NUMBER],33 int iSat, int iEntry);34 35 27 #endif /* RTCM3TORINEXSUPPORT_H */
Note:
See TracChangeset
for help on using the changeset viewer.