Changeset 10902 in ntrip for trunk/BNC/src/RTCM3/bits.h
- Timestamp:
- May 4, 2026, 9:58:17 PM (6 hours ago)
- File:
-
- 1 edited
-
trunk/BNC/src/RTCM3/bits.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/bits.h
r10551 r10902 156 156 // RTCM3 CRS encoding 157 157 ////////////////////////////////////////////////////////// 158 #define CRSTOINT(type, value) static_cast<type>( round(value))158 #define CRSTOINT(type, value) static_cast<type>(ceil(value)) 159 159 160 160 #define CRSADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \ … … 169 169 // RTCM3 GPS EPH encoding 170 170 ////////////////////////////////////////////////////////// 171 #define GPSTOINT(type, value) static_cast<type>( round(value))171 #define GPSTOINT(type, value) static_cast<type>(ceil(value)) 172 172 173 173 #define GPSADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \ … … 182 182 // RTCM3 GLONASS EPH encoding 183 183 ////////////////////////////////////////////////////////// 184 #define GLONASSTOINT(type, value) static_cast<type>( round(value))184 #define GLONASSTOINT(type, value) static_cast<type>(ceil(value)) 185 185 186 186 #define GLONASSADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \ … … 207 207 // RTCM3 Galileo EPH encoding 208 208 ////////////////////////////////////////////////////////// 209 #define GALILEOTOINT(type, value) static_cast<type>( round(value))209 #define GALILEOTOINT(type, value) static_cast<type>(ceil(value)) 210 210 211 211 #define GALILEOADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \ … … 220 220 // RTCM3 BDS EPH encoding 221 221 ////////////////////////////////////////////////////////// 222 #define BDSTOINT(type, value) static_cast<type>( round(value))222 #define BDSTOINT(type, value) static_cast<type>(ceil(value)) 223 223 224 224 #define BDSADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \ … … 233 233 // RTCM3 SBAS EPH encoding 234 234 ////////////////////////////////////////////////////////// 235 #define SBASTOINT(type, value) static_cast<type>( round(value))235 #define SBASTOINT(type, value) static_cast<type>(ceil(value)) 236 236 237 237 #define SBASADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \
Note:
See TracChangeset
for help on using the changeset viewer.
