Changeset 9685 in ntrip


Ignore:
Timestamp:
Apr 11, 2022, 2:52:54 PM (2 years ago)
Author:
stuerze
Message:

minor changes

Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/combination/bncbiassnx.cpp

    r9684 r9685  
    149149      if (unit.contains("ns")) {
    150150        // from nano seconds into meters
     151        value /= 1.e9;
    151152        value *= t_CST::c;
    152         value /= 1.e9;
     153
    153154      }
    154155
  • trunk/BNC/src/satObs.cpp

    r9682 r9685  
    3737    *out << corr._prn.toString() << ' ' << setw(11) << corr._iod << ' '
    3838         << setw(10) << setprecision(4) << corr._dClk       * t_CST::c      << ' '
    39          << setw(10) << setprecision(4) << corr._dotDClk    * t_CST::c *1.e3 << ' '    // m/s => mm/s
    40          << setw(10) << setprecision(4) << corr._dotDotDClk * t_CST::c *1.e3 << endl;  // m/s => mm/s
     39         << setw(10) << setprecision(4) << corr._dotDClk    * t_CST::c * 1.e3 << ' '    // m/s => mm/s
     40         << setw(10) << setprecision(4) << corr._dotDotDClk * t_CST::c * 1.e3 << endl;  // m/s => mm/s
    4141  }
    4242  out->flush();
     
    6767      corr._prn.setFlags(1);// I/NAV
    6868    }
    69     corr._dClk       /= t_CST::c;
    70     corr._dotDClk    /= t_CST::c;
    71     corr._dotDotDClk /= t_CST::c;
    72 
    73     corr._dotDClk    /= 1.e3;  // mm/s => m/s
    74     corr._dotDotDClk /= 1.e3;  // mm/s => m/s
     69    corr._dClk       /= (t_CST::c);       // m
     70    corr._dotDClk    /= (t_CST::c * 1.e3);// mm/s
     71    corr._dotDotDClk /= (t_CST::c * 1.e3);// mm/s²
    7572
    7673    corrList.push_back(corr);
     
    109106         << setw(10) << setprecision(4) << corr._xr[1]     << ' '
    110107         << setw(10) << setprecision(4) << corr._xr[2]     << "    "
    111          << setw(10) << setprecision(4) << corr._dotXr[0] * 1.e3  << ' '   // m/s => mm/s
    112          << setw(10) << setprecision(4) << corr._dotXr[1] * 1.e3  << ' '   // m/s => mm/s
    113          << setw(10) << setprecision(4) << corr._dotXr[2] * 1.e3 << endl;  // m/s => mm/s
     108         << setw(10) << setprecision(4) << corr._dotXr[0] * 1.e3 << ' '   // m/s => mm/s
     109         << setw(10) << setprecision(4) << corr._dotXr[1] * 1.e3 << ' '   // m/s => mm/s
     110         << setw(10) << setprecision(4) << corr._dotXr[2] * 1.e3 << endl; // m/s => mm/s
    114111  }
    115112  out->flush();
     
    140137       >> corr._dotXr[0] >> corr._dotXr[1] >> corr._dotXr[2];
    141138
    142     corr._dotXr /= 1.e3; // mm/s => m/s
     139    corr._dotXr[0] /= 1.e3; // mm/s => m/s
     140    corr._dotXr[1] /= 1.e3; // mm/s => m/s
     141    corr._dotXr[2] /= 1.e3; // mm/s => m/s
    143142
    144143    if (corr._prn.system() == 'E') {
Note: See TracChangeset for help on using the changeset viewer.