Changeset 6398 in ntrip for trunk


Ignore:
Timestamp:
Dec 21, 2014, 3:48:50 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r6323 r6398  
    191191double t_reqcAnalyze::cmpDOP(const ColumnVector& xyzSta) const {
    192192
    193   if (xyzSta.size() != 3) {
     193  if ( xyzSta.size() != 3 || (xyzSta[0] == 0.0 && xyzSta[1] == 0.0 && xyzSta[2] == 0.0) ) {
    194194    return 0.0;
    195195  }
     
    281281    ColumnVector xc(4);
    282282    ColumnVector vv(3);
    283     if (xyzSta.size() && eph->getCrd(epoTime, xc, vv, false) == success) {
     283    if ( xyzSta.size() == 3 && (xyzSta[0] != 0.0 || xyzSta[1] != 0.0 || xyzSta[2] != 0.0) &&
     284         eph->getCrd(epoTime, xc, vv, false) == success) {
    284285      double rho, eleSat, azSat;
    285286      topos(xyzSta(1), xyzSta(2), xyzSta(3), xc(1), xc(2), xc(3), rho, eleSat, azSat);
Note: See TracChangeset for help on using the changeset viewer.