[6176] | 1 | #include <iostream>
|
---|
[6177] | 2 | #include <iomanip>
|
---|
[6176] | 3 | #include <sstream>
|
---|
[6144] | 4 |
|
---|
| 5 | #include "satObs.h"
|
---|
[6178] | 6 |
|
---|
[6144] | 7 | using namespace std;
|
---|
| 8 |
|
---|
| 9 | //
|
---|
| 10 | ////////////////////////////////////////////////////////////////////////////
|
---|
[6180] | 11 | t_clkCorr::t_clkCorr(const string& line) {
|
---|
| 12 | reset();
|
---|
| 13 | istringstream in(line);
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | //
|
---|
| 17 | ////////////////////////////////////////////////////////////////////////////
|
---|
| 18 | void t_clkCorr::reset() {
|
---|
[6160] | 19 | _iod = 0;
|
---|
| 20 | _dClk = 0.0;
|
---|
| 21 | _dotDClk = 0.0;
|
---|
| 22 | _dotDotDClk = 0.0;
|
---|
| 23 | _clkPartial = 0.0;
|
---|
[6144] | 24 | }
|
---|
| 25 |
|
---|
| 26 | //
|
---|
| 27 | ////////////////////////////////////////////////////////////////////////////
|
---|
[6175] | 28 | string t_clkCorr::toLine() const {
|
---|
[6176] | 29 | ostringstream str;
|
---|
| 30 | str.setf(ios::showpoint | ios::fixed);
|
---|
[6178] | 31 | str << "C " << _time.gpsw() << ' ' << setprecision(2) << _time.gpssec() << ' '
|
---|
[6180] | 32 | << _prn.toString() << ' ' << setw(3) << _iod << ' '
|
---|
[6178] | 33 | << setw(10) << setprecision(4) << _dClk * t_CST::c << ' '
|
---|
| 34 | << setw(10) << setprecision(4) << _dotDClk * t_CST::c << ' '
|
---|
| 35 | << setw(10) << setprecision(4) << _dotDotDClk * t_CST::c << endl;
|
---|
[6176] | 36 | return str.str();
|
---|
[6144] | 37 | }
|
---|
| 38 |
|
---|
| 39 | //
|
---|
| 40 | ////////////////////////////////////////////////////////////////////////////
|
---|
[6180] | 41 | t_orbCorr::t_orbCorr(const string& line) {
|
---|
| 42 | reset();
|
---|
| 43 | istringstream in(line);
|
---|
| 44 | }
|
---|
| 45 |
|
---|
| 46 | //
|
---|
| 47 | ////////////////////////////////////////////////////////////////////////////
|
---|
| 48 | void t_orbCorr::reset() {
|
---|
[6160] | 49 | _xr.ReSize(3); _xr = 0.0;
|
---|
| 50 | _dotXr.ReSize(3); _dotXr = 0.0;
|
---|
| 51 | _iod = 0;
|
---|
| 52 | _system = 'R';
|
---|
[6144] | 53 | }
|
---|
| 54 |
|
---|
| 55 | //
|
---|
| 56 | ////////////////////////////////////////////////////////////////////////////
|
---|
[6175] | 57 | string t_orbCorr::toLine() const {
|
---|
[6176] | 58 | ostringstream str;
|
---|
| 59 | str.setf(ios::showpoint | ios::fixed);
|
---|
[6179] | 60 | str << "O " << _time.gpsw() << ' ' << setprecision(2) << _time.gpssec() << ' '
|
---|
[6180] | 61 | << _prn.toString() << ' ' << setw(3) << _iod << ' '
|
---|
[6179] | 62 | << setw(10) << setprecision(4) << _xr[0] << ' '
|
---|
| 63 | << setw(10) << setprecision(4) << _xr[1] << ' '
|
---|
| 64 | << setw(10) << setprecision(4) << _xr[2] << " "
|
---|
| 65 | << setw(10) << setprecision(4) << _dotXr[0] << ' '
|
---|
| 66 | << setw(10) << setprecision(4) << _dotXr[1] << ' '
|
---|
| 67 | << setw(10) << setprecision(4) << _dotXr[2] << endl;
|
---|
[6176] | 68 | return str.str();
|
---|
[6144] | 69 | }
|
---|
| 70 |
|
---|