Changeset 8184 in ntrip for branches/BNC_2.12/src/RTCM3
- Timestamp:
- Nov 17, 2017, 11:44:06 AM (7 years ago)
- Location:
- branches/BNC_2.12/src/RTCM3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/RTCM3/RTCM3Decoder.cpp
r8165 r8184 1049 1049 _gloFrq = QString("%1 %2").arg(eph._prn.toString().c_str()).arg( 1050 1050 eph._frequency_number, 2, 'f', 0); 1051 SKIPBITS(4) 1052 /* almanac healthy, almanac health ok, P1 */ 1051 GETBITS(eph._almanac_health, 1) /* almanac healthy */ 1052 GETBITS(eph._almanac_health_availablility_indicator, 1) /* almanac health ok */ 1053 GETBITS(eph._P1, 2) /* P1 */ 1053 1054 GETBITS(i, 5) 1054 1055 tk = i * 60 * 60; … … 1058 1059 tk += i * 30; 1059 1060 eph._tki = tk < 3 * 60 * 60 ? tk - 3 * 60 * 60 + 86400 : tk - 3 * 60 * 60; 1060 GETBITS(eph._health, 1) 1061 SKIPBITS(1) 1062 /* P2 */ 1061 GETBITS(eph._health, 1) /* MSB of Bn*/ 1062 GETBITS(eph._P2, 1) /* P2 */ 1063 1063 GETBITS(i, 7) 1064 1064 eph._TOC.setTk(i * 15 * 60 * 1000); /* tb */ … … 1073 1073 GETFLOATSIGNM(eph._z_pos, 27, 1.0 / (double )(1 << 11)) 1074 1074 GETFLOATSIGNM(eph._z_acceleration, 5, 1.0 / (double )(1 << 30)) 1075 SKIPBITS(1) 1076 /* P3 */ 1075 GETBITS(eph._P3, 1) /* P3 */ 1077 1076 GETFLOATSIGNM(eph._gamma, 11, 1.0 / (double )(1 << 30) / (double )(1 << 10)) 1078 SKIPBITS(3) 1079 /* GLONASS-M P, GLONASS-M ln (third string) */ 1080 GETFLOATSIGNM(eph._tau, 22, 1.0 / (double )(1 << 30)) 1081 /* GLONASS tau n(tb) */ 1082 SKIPBITS(5) 1083 /* GLONASS-M delta tau n(tb) */ 1077 GETBITS(eph._M_P, 2) /* GLONASS-M P, */ 1078 GETBITS(eph._M_l3, 1) /*GLONASS-M ln (third string) */ 1079 GETFLOATSIGNM(eph._tau, 22, 1.0 / (double )(1 << 30)) /* GLONASS tau n(tb) */ 1080 GETFLOATSIGNM(eph._M_delta_tau, 5, 1.0 / (double )(1 << 30)) /* GLONASS-M delta tau n(tb) */ 1084 1081 GETBITS(eph._E, 5) 1085 /* GETBITS(i, 1) /* GLONASS-M P4 */1086 /* GETBITS(i, 4) /* GLONASS-M Ft */1087 /* GETBITS(i, 11) /* GLONASS-M Nt */1088 /* GETBITS(i, 2) /* GLONASS-M M */1089 /* GETBITS(i, 1) /* GLONASS-M The Availability of Additional Data */1090 /* GETBITS(i, 11) /* GLONASS-M Na */1091 /* GETFLOATSIGNM(i, 32, 1.0/(double)(1<<30)/(double)(1<<1)) /* GLONASS tau c */1092 /* GETBITS(i, 5) /* GLONASS-M N4 */1093 /* GETFLOATSIGNM(i, 22, 1.0/(double)(1<<30)) /* GLONASS-M tau GPS */1094 /* GETBITS(i, 1) /* GLONASS-M ln (fifth string) */1082 GETBITS(eph._M_P4, 1) /* GLONASS-M P4 */ 1083 GETBITS(eph._M_FT, 4) /* GLONASS-M Ft */ 1084 GETBITS(eph._M_NT, 11) /* GLONASS-M Nt */ 1085 GETBITS(eph._M_M, 2) /* GLONASS-M M */ 1086 GETBITS(eph._additional_data_availability, 1) /* GLONASS-M The Availability of Additional Data */ 1087 GETBITS(eph._NA, 11) /* GLONASS-M Na */ 1088 GETFLOATSIGNM(eph._tauC, 32, 1.0/(double)(1<<30)/(double)(1<<1)) /* GLONASS tau c */ 1089 GETBITS(eph._M_N4, 5) /* GLONASS-M N4 */ 1090 GETFLOATSIGNM(eph._M_tau_GPS, 22, 1.0/(double)(1<<30)) /* GLONASS-M tau GPS */ 1091 GETBITS(eph._M_l5, 1) /* GLONASS-M ln (fifth string) */ 1095 1092 1096 1093 unsigned year, month, day; -
branches/BNC_2.12/src/RTCM3/ephEncoder.cpp
r7849 r8184 123 123 GLONASSADDBITS(6, eph._prn.number()) 124 124 GLONASSADDBITS(5, 7+eph._frequency_number) 125 GLONASSADDBITS(1, 0)126 GLONASSADDBITS(1, 0)127 GLONASSADDBITS(2, 0)125 GLONASSADDBITS(1, eph._almanac_health) 126 GLONASSADDBITS(1, eph._almanac_health_availablility_indicator) 127 GLONASSADDBITS(2, eph._P1) 128 128 int tki = static_cast<int>(eph._tki)+3*60*60; 129 129 if (tki > 86400) {tki -= 86400;} … … 132 132 GLONASSADDBITS(1, (static_cast<int>(tki)/30)%30) 133 133 GLONASSADDBITS(1, eph._health) 134 GLONASSADDBITS(1, 0)134 GLONASSADDBITS(1, eph._P2) 135 135 unsigned long long timeofday = (static_cast<int>(eph._tt.gpssec()+3*60*60-eph._gps_utc)%86400); 136 136 GLONASSADDBITS(7, timeofday/60/15) … … 144 144 GLONASSADDBITSFLOATM(27,eph._z_pos*1000, 1000.0/static_cast<double>(1<<11)) 145 145 GLONASSADDBITSFLOATM(5, eph._z_acceleration*1000, 1000.0/static_cast<double>(1<<30)) 146 GLONASSADDBITS(1, 0) 147 GLONASSADDBITSFLOATM(11, eph._gamma, 1.0/static_cast<double>(1<<30) 148 /static_cast<double>(1<<10)) 149 GLONASSADDBITS(2, 0) /* GLONASS-M P */ 150 GLONASSADDBITS(1, 0) /* GLONASS-M ln(3) */ 146 GLONASSADDBITS(1, eph._P3) 147 GLONASSADDBITSFLOATM(11, eph._gamma, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<10)) 148 GLONASSADDBITS(2, eph._M_P) /* GLONASS-M P */ 149 GLONASSADDBITS(1, eph._M_l3) /* GLONASS-M ln(3) */ 151 150 GLONASSADDBITSFLOATM(22, eph._tau, 1.0/static_cast<double>(1<<30)) 152 GLONASSADDBITS (5, 0) /* GLONASS-M delta tau */151 GLONASSADDBITSFLOATM(5, eph._M_delta_tau, 1.0/static_cast<double>(1<<30)) /* GLONASS-M delta tau */ 153 152 GLONASSADDBITS(5, eph._E) 154 GLONASSADDBITS(1, 0) /* GLONASS-M P4 */155 GLONASSADDBITS(4, 0) /* GLONASS-M FT */156 GLONASSADDBITS(11, 0) /* GLONASS-M NT */157 GLONASSADDBITS(2, 0) /* GLONASS-M active? */158 GLONASSADDBITS(1, 0) /* GLONASS additional data */159 GLONASSADDBITS(11, 0) /* GLONASS NA */160 GLONASSADDBITS (32, 0) /* GLONASS tau C */161 GLONASSADDBITS(5, 0) /* GLONASS-M N4 */162 GLONASSADDBITS (22, 0) /* GLONASS-M tau GPS */163 GLONASSADDBITS(1, 0) /* GLONASS-M ln(5) */153 GLONASSADDBITS(1, eph._M_P4) /* GLONASS-M P4 */ 154 GLONASSADDBITS(4, eph._M_FT) /* GLONASS-M FT */ 155 GLONASSADDBITS(11, eph._M_NT) /* GLONASS-M NT */ 156 GLONASSADDBITS(2, eph._M_M) /* GLONASS-M active? */ 157 GLONASSADDBITS(1, eph._additional_data_availability) /* GLONASS additional data */ 158 GLONASSADDBITS(11, eph._NA) /* GLONASS NA */ 159 GLONASSADDBITSFLOATM(32, eph._tauC, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<1)) /* GLONASS tau C */ 160 GLONASSADDBITS(5, eph._M_N4) /* GLONASS-M N4 */ 161 GLONASSADDBITSFLOATM(22, eph._M_tau_GPS, 1.0/static_cast<double>(1<<30)) /* GLONASS-M tau GPS */ 162 GLONASSADDBITS(1, eph._M_l5) /* GLONASS-M ln(5) */ 164 163 GLONASSADDBITS(7, 0) /* Reserved */ 165 164
Note:
See TracChangeset
for help on using the changeset viewer.