Changeset 9089 in ntrip for branches/BNC_2.12/src/bncutils.cpp


Ignore:
Timestamp:
Sep 2, 2020, 10:49:54 PM (2 years ago)
Author:
stuerze
Message:

adjusted allocation of slip and LTI according to the respective RTCM version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/bncutils.cpp

    r8855 r9089  
    10021002}
    10031003
    1004 // Convert RTCM3 lock-time indicator to lock time in seconds
     1004// Convert RTCM3 lock-time indicator to minimum lock time in seconds
    10051005////////////////////////////////////////////////////////////////////////////
    10061006double lti2sec(int type, int lti) {
     
    10161016    else if (lti< 127) return  32*lti-3096; // [744  32  905]
    10171017    else if (lti==127) return  937;
    1018     else               return  -1;
     1018    else               return  -1.0;
    10191019  }
    10201020  else if (type%10==2 || type%10==3 ||
     
    10371037      case(14) : return 262144e-3;
    10381038      case(15) : return 524288e-3;
    1039       default  : return     -1;
     1039      default  : return     -1.0;
    10401040    };
    10411041  }
     
    10641064    else if (lti< 704) return (1048576*lti-671088640 )*1e-3;
    10651065    else if (lti==704) return (2097152*lti-1409286144)*1e-3;
    1066     else               return (     -1               );
     1066    else               return (     -1.0               );
    10671067  }
    10681068  else {
    1069     return -1;
     1069    return -1.0;
    10701070  };
    10711071};
Note: See TracChangeset for help on using the changeset viewer.