Changeset 9930 in ntrip for trunk/BNC/src/bncephuser.cpp
- Timestamp:
- Nov 30, 2022, 1:55:40 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncephuser.cpp
r9929 r9930 187 187 void bncEphUser::checkEphemeris(t_eph* eph, bool realTime) { 188 188 189 if ( eph->prn().system() != 'R' || eph->prn().system() != 'G')189 if (!eph) { 190 190 return; 191 cout << "\ncheckEphemeris "; 192 193 if (!eph) { 194 return; cout << "no eph "; 195 } 196 cout << eph->prn().toString().c_str() << " "; 191 } 197 192 198 193 // Check whether the epoch is too far away the current time … … 217 212 ColumnVector vv(3); 218 213 if (eph->getCrd(eph->TOC(), xc, vv, false) != success) { 219 eph->setCheckState(t_eph::bad); cout << "eph->getCrd() != success: bad ";214 eph->setCheckState(t_eph::bad); 220 215 return; 221 216 } … … 225 220 const double MAXDIST = 6.e7; 226 221 if (rr < MINDIST || rr > MAXDIST || std::isnan(rr)) { 227 eph->setCheckState(t_eph::bad); cout << " eph MIN/MAXDIST: bad ";222 eph->setCheckState(t_eph::bad); 228 223 return; 229 224 } … … 244 239 } 245 240 246 if (ephL ) {241 if (ephL && ephL->checkState() != t_eph::bad) { 247 242 ColumnVector xcL(6); 248 243 ColumnVector vvL(3); 249 244 if (ephL->getCrd(eph->TOC(), xcL, vvL, false) != success) { 250 eph ->setCheckState(t_eph::bad); cout << " ephL->getCrd() != success: bad ";245 ephL->setCheckState(t_eph::bad); 251 246 return; 252 247 }
Note:
See TracChangeset
for help on using the changeset viewer.