Changeset 7844 in ntrip
- Timestamp:
- Mar 17, 2016, 1:38:18 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/ephEncoder.cpp
r7053 r7844 93 93 /static_cast<double>(1<<13)) 94 94 GPSADDBITSFLOAT(8, eph._TGD, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<1)) 95 GPSADDBITS(6, eph._health) 95 GPSADDBITS(6, eph._health) 96 96 GPSADDBITS(1, eph._L2PFlag) 97 97 GPSADDBITS(1, eph._fitInterval) … … 126 126 GLONASSADDBITS(1, 0) 127 127 GLONASSADDBITS(2, 0) 128 eph._tki=eph._tki+3*60*60; 129 GLONASSADDBITS(5, static_cast<int>(eph._tki)/(60*60)) 130 GLONASSADDBITS(6, (static_cast<int>(eph._tki)/60)%60) 131 GLONASSADDBITS(1, (static_cast<int>(eph._tki)/30)%30) 132 GLONASSADDBITS(1, eph._health) 128 int tki = static_cast<int>(eph._tki)+3*60*60; 129 if (tki > 86400) {tki -= 86400;} 130 GLONASSADDBITS(5, tki/(60*60)) 131 GLONASSADDBITS(6, (tki/60)%60) 132 GLONASSADDBITS(1, (tki/30)%30) 133 GLONASSADDBITS(1, eph._health) 133 134 GLONASSADDBITS(1, 0) 134 135 unsigned long long timeofday = (static_cast<int>(eph._tt.gpssec()+3*60*60-eph._gps_utc)%86400);
Note:
See TracChangeset
for help on using the changeset viewer.