Changeset 4432 in ntrip for trunk/rtcm3torinex/lib/rtcm3torinexsupport.cpp
- Timestamp:
- Jul 24, 2012, 5:47:50 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/rtcm3torinex/lib/rtcm3torinexsupport.cpp
r4431 r4432 25 25 */ 26 26 27 #include <string> 28 extern "C" { 27 29 #include "rtcm3torinex.h" 30 } 28 31 29 32 int rrinex3codetoentry(const char *code) … … 75 78 return res; 76 79 } 80 81 std::string entry2rinexcode(const char* codetype[GNSS_MAXSATS][GNSSENTRY_NUMBER], 82 int iSat, int iEntry) { 83 char str[3]; 84 switch(iEntry&3) { 85 case GNSSENTRY_CODE: str[0] = 'C'; break; 86 case GNSSENTRY_PHASE: str[0] = 'L'; break; 87 case GNSSENTRY_DOPPLER: str[0] = 'D'; break; 88 case GNSSENTRY_SNR: str[0] = 'S'; break; 89 } 90 str[1] = codetype[iSat][iEntry][0]; 91 str[2] = codetype[iSat][iEntry][1]; 92 return std::string(str); 93 }
Note:
See TracChangeset
for help on using the changeset viewer.