Changeset 9088 in ntrip for trunk/BNC/src/bncutils.cpp


Ignore:
Timestamp:
Sep 2, 2020, 10:42:48 PM (4 years ago)
Author:
stuerze
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncutils.cpp

    r8903 r9088  
    10031003}
    10041004
    1005 // Convert RTCM3 lock-time indicator to lock time in seconds
     1005// Convert RTCM3 lock-time indicator to minimum lock time in seconds
    10061006////////////////////////////////////////////////////////////////////////////
    10071007double lti2sec(int type, int lti) {
     
    10171017    else if (lti< 127) return  32*lti-3096; // [744  32  905]
    10181018    else if (lti==127) return  937;
    1019     else               return  -1;
     1019    else               return  -1.0;
    10201020  }
    10211021  else if (type%10==2 || type%10==3 ||
     
    10381038      case(14) : return 262144e-3;
    10391039      case(15) : return 524288e-3;
    1040       default  : return     -1;
     1040      default  : return     -1.0;
    10411041    };
    10421042  }
     
    10651065    else if (lti< 704) return (1048576*lti-671088640 )*1e-3;
    10661066    else if (lti==704) return (2097152*lti-1409286144)*1e-3;
    1067     else               return (     -1               );
     1067    else               return (     -1.0               );
    10681068  }
    10691069  else {
    1070     return -1;
     1070    return -1.0;
    10711071  };
    10721072};
Note: See TracChangeset for help on using the changeset viewer.