Changeset 10902 in ntrip


Ignore:
Timestamp:
May 4, 2026, 9:58:17 PM (5 hours ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/bits.h

    r10551 r10902  
    156156// RTCM3 CRS encoding
    157157//////////////////////////////////////////////////////////
    158 #define CRSTOINT(type, value) static_cast<type>(round(value))
     158#define CRSTOINT(type, value) static_cast<type>(ceil(value))
    159159
    160160#define CRSADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \
     
    169169// RTCM3 GPS EPH encoding
    170170//////////////////////////////////////////////////////////
    171 #define GPSTOINT(type, value) static_cast<type>(round(value))
     171#define GPSTOINT(type, value) static_cast<type>(ceil(value))
    172172
    173173#define GPSADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \
     
    182182// RTCM3 GLONASS EPH encoding
    183183//////////////////////////////////////////////////////////
    184 #define GLONASSTOINT(type, value) static_cast<type>(round(value))
     184#define GLONASSTOINT(type, value) static_cast<type>(ceil(value))
    185185
    186186#define GLONASSADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \
     
    207207// RTCM3 Galileo EPH encoding
    208208//////////////////////////////////////////////////////////
    209 #define GALILEOTOINT(type, value) static_cast<type>(round(value))
     209#define GALILEOTOINT(type, value) static_cast<type>(ceil(value))
    210210
    211211#define GALILEOADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \
     
    220220// RTCM3 BDS EPH encoding
    221221//////////////////////////////////////////////////////////
    222 #define BDSTOINT(type, value) static_cast<type>(round(value))
     222#define BDSTOINT(type, value) static_cast<type>(ceil(value))
    223223
    224224#define BDSADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \
     
    233233// RTCM3 SBAS EPH encoding
    234234//////////////////////////////////////////////////////////
    235 #define SBASTOINT(type, value) static_cast<type>(round(value))
     235#define SBASTOINT(type, value) static_cast<type>(ceil(value))
    236236
    237237#define SBASADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \
Note: See TracChangeset for help on using the changeset viewer.