Ignore:
Timestamp:
Nov 3, 2020, 4:22:03 PM (3 years ago)
Author:
stuerze
Message:

small re-organization of debug output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/RTCM3/RTCM3Decoder.cpp

    r9205 r9209  
    10471047    GETFLOAT(eph._sqrt_A, 32, 1.0 / (double )(1 << 19))
    10481048    if (eph._sqrt_A < 1000.0) {
     1049#ifdef BNC_DEBUG_BCEP
    10491050      emit(newMessage(QString("%1: Block %2 (%3) SQRT_A %4 m!")
    10501051           .arg(_staID).arg(1020,4).arg(eph._prn.toString().c_str())
    10511052           .arg(eph._sqrt_A,10,'F',3).toAscii(), true));
     1053#endif
    10521054      return false;
    10531055    }
     
    11071109    GETBITS(eph._almanac_health_availablility_indicator, 1) /* almanac health ok */
    11081110    if (eph._almanac_health_availablility_indicator == 0.0) {
     1111#ifdef BNC_DEBUG_BCEP
    11091112      emit(newMessage(QString("%1: Block %2 (%3): ALM = %4: missing data!")
    11101113           .arg(_staID).arg(1019,4).arg(eph._prn.toString().c_str())
    11111114           .arg(eph._almanac_health_availablility_indicator).toAscii(), true));
     1115#endif
    11121116      return false;
    11131117    }
     
    11481152    GETBITS(eph._M_NT, 11) /* GLONASS-M Nt */
    11491153    if (eph._M_NT == 0.0) {
     1154#ifdef BNC_DEBUG_BCEP
    11501155      emit(newMessage(QString("%1: Block %2 (%3): NT = %4: missing data!")
    11511156           .arg(_staID).arg(1019,4).arg(eph._prn.toString().c_str()).arg(eph._M_NT,4).toAscii(), true));
     1157#endif
    11521158      return false;
    11531159    }
     
    11551161    GETBITS(eph._additional_data_availability, 1) /* GLONASS-M The Availability of Additional Data */
    11561162    if (eph._additional_data_availability == 0.0) {
     1163#ifdef BNC_DEBUG_BCEP
    11571164      emit(newMessage(QString("%1: Block %2 (%3): ADD = %4: missing data!")
    11581165           .arg(_staID).arg(1019,4).arg(eph._prn.toString().c_str())
    11591166           .arg(eph._additional_data_availability).toAscii(), true));
     1167#endif
    11601168      return false;
    11611169    }
     
    11751183    eph._xv(3) = eph._z_pos * 1.e3;
    11761184    if (eph._xv.Rows(1,3).NormFrobenius() < 1.0) {
     1185#ifdef BNC_DEBUG_BCEP
    11771186      emit(newMessage(QString("%1: Block %2 (%3): zero position!")
    11781187           .arg(_staID).arg(1019,4).arg(eph._prn.toString().c_str()).toAscii(), true));
     1188#endif
    11791189      return false;
    11801190    }
     
    11831193    eph._xv(6) = eph._z_velocity * 1.e3;
    11841194    if (eph._xv.Rows(4,6).NormFrobenius() < 1.0) {
     1195#ifdef BNC_DEBUG_BCEP
    11851196      emit(newMessage(QString("%1: Block %2 (%3): zero velocity!")
    11861197           .arg(_staID).arg(1019,4).arg(eph._prn.toString().c_str()).toAscii(), true));
     1198#endif
    11871199      return false;
    11881200    }
     
    12321244    GETFLOAT(eph._sqrt_A, 32, 1.0 / (double )(1 << 19))
    12331245    if (eph._sqrt_A < 1000.0) {
     1246#ifdef BNC_DEBUG_BCEP
    12341247      emit(newMessage(QString("%1: Block %2 (%3) SQRT_A %4 m!")
    12351248           .arg(_staID).arg(1044,4).arg(eph._prn.toString().c_str())
    12361249           .arg(eph._sqrt_A,10,'F',3).toAscii(), true));
     1250#endif
    12371251      return false;
    12381252    }
     
    13461360    GETFLOAT(eph._sqrt_A,       32, 1.0 / (double )(1 << 19))
    13471361    if (eph._sqrt_A < 1000.0) {
     1362#ifdef BNC_DEBUG_BCEP
    13481363      emit(newMessage(QString("%1: Block %2 (%3) SQRT_A %4 m!")
    13491364           .arg(_staID).arg(1041,4).arg(eph._prn.toString().c_str())
    13501365           .arg(eph._sqrt_A,10,'F',3).toAscii(), true));
     1366#endif
    13511367      return false;
    13521368    }
     
    13951411    pos(1) = eph._x_pos; pos(2) = eph._y_pos; pos(3) = eph._z_pos;
    13961412    if (pos.NormFrobenius() < 1.0) {
     1413#ifdef BNC_DEBUG_BCEP
    13971414      emit(newMessage(QString("%1: Block %2 (%3): zero position!")
    13981415           .arg(_staID).arg(1043,4).arg(eph._prn.toString().c_str()).toAscii(), true));
     1416#endif
    13991417      return false;
    14001418    }
     
    14771495      GETBITS(eph._e1DataInValid, 1)
    14781496      if (eph._E5bHS != eph._E1_bHS) {
     1497#ifdef BNC_DEBUG_BCEP
    14791498        emit(newMessage(QString("%1: Block %2 (%3) SHS E5b %4 E1B %5: inconsistent health!")
    14801499             .arg(_staID).arg(1046,4).arg(eph._prn.toString().c_str())
    14811500             .arg(eph._E5bHS).arg(eph._E1_bHS).toAscii(), true));
     1501#endif
    14821502        return false;
    14831503      }
    14841504      if ((eph._BGD_1_5A == 0.0 && fabs(eph._BGD_1_5B) > 1e-9) ||
    14851505          (eph._BGD_1_5B == 0.0 && fabs(eph._BGD_1_5A) > 1e-9)) {
     1506#ifdef BNC_DEBUG_BCEP
    14861507        emit(newMessage(QString("%1: Block %2 (%3) BGD_15a = %4 BGD_15b = %5: inconsistent BGD!")
    14871508             .arg(_staID).arg(1046,4).arg(eph._prn.toString().c_str())
    14881509             .arg(eph._BGD_1_5A,10,'E',3).arg(eph._BGD_1_5B,10,'E',3).toAscii(), true));
     1510#endif
    14891511        return false;
    14901512      }
     
    15041526
    15051527    if (eph._sqrt_A < 1000.0) {
     1528#ifdef BNC_DEBUG_BCEP
    15061529      emit(newMessage(QString("%1: Block %2 (%3) SQRT_A %4 m!")
    15071530           .arg(_staID).arg(eph._inav? 1046 : 1045,4).arg(eph._prn.toString().c_str())
    15081531           .arg(eph._sqrt_A,10,'F',3).toLatin1(), true));
     1532#endif
    15091533      return false;
    15101534    }
     
    15561580    GETFLOAT(eph._sqrt_A, 32, 1.0 / (double )(1 << 19))
    15571581    if (eph._sqrt_A < 1000.0) {
     1582#ifdef BNC_DEBUG_BCEP
    15581583      emit(newMessage(QString("%1: Block %2 (%3) SQRT_A %4 m!")
    15591584           .arg(_staID).arg(1042,4).arg(eph._prn.toString().c_str())
    15601585           .arg(eph._sqrt_A,10,'F',3).toAscii(), true));
     1586#endif
    15611587      return false;
    15621588    }
     
    17111737          case 1001:
    17121738          case 1003:
    1713             emit(newMessage(
    1714                 QString("%1: Block %2 contain partial data! Ignored!")
    1715                     .arg(_staID).arg(id).toAscii(), true));
     1739            emit(newMessage(QString("%1: Block %2 contain partial data! Ignored!")
     1740                 .arg(_staID).arg(id).toAscii(), true));
    17161741            break; /* no use decoding partial data ATM, remove break when data can be used */
    17171742          case 1002:
     
    17221747          case 1009:
    17231748          case 1011:
    1724             emit(newMessage(
    1725                 QString("%1: Block %2 contain partial data! Ignored!")
    1726                     .arg(_staID).arg(id).toAscii(), true));
     1749            emit(newMessage(QString("%1: Block %2 contain partial data! Ignored!")
     1750                 .arg(_staID).arg(id).toAscii(), true));
    17271751            break; /* no use decoding partial data ATM, remove break when data can be used */
    17281752          case 1010:
Note: See TracChangeset for help on using the changeset viewer.