Ignore:
Timestamp:
Jul 24, 2012, 5:47:50 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rtcm3torinex/lib/rtcm3torinexsupport.cpp

    r4431 r4432  
    2525*/
    2626
     27#include <string>
     28extern "C" {
    2729#include "rtcm3torinex.h"
     30}
    2831
    2932int rrinex3codetoentry(const char *code)
     
    7578  return res;
    7679}
     80
     81std::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.