Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r799 r800 16 16 17 17 #include <iostream> 18 #include <newmatio.h> 18 19 19 20 #include "bns.h" … … 237 238 satellitePosition(GPSweeks, ep, xB(1), xB(2), xB(3), xB(4)); 238 239 239 cout << GPSweek << " " << GPSweeks << " " 240 << xx(1) << " " << xx(2) << " " << xx(3) << " " << xx(4) << " " 241 << xB(1) << " " << xB(2) << " " << xB(3) << " " << xB(4) << endl; 242 } 240 ColumnVector dx = xx - xB; 241 dx(4) *= 299792458.0; 242 243 cout << GPSweek << " " << GPSweeks << " " << ep->prn.toAscii().data() << " " 244 << setprecision(3) << dx.t(); 245 } -
trunk/BNS/bnseph.cpp
r797 r800 104 104 } 105 105 106 intyear, month, day, hour, minute, second;106 double year, month, day, hour, minute, second; 107 107 in >> year >> month >> day >> hour >> minute >> second 108 108 >> ep->clock_bias >> ep->clock_drift >> ep->clock_driftrate; … … 112 112 QDateTime dateTime(QDate(year,month,day), QTime(hour, minute, second), 113 113 Qt::UTC); 114 double toc;115 GPSweekFromDateAndTime(dateTime, ep->GPSweek, toc);116 ep-> TOC = int(floor(toc+0.5));114 int week; 115 GPSweekFromDateAndTime(dateTime, week, ep->TOC); 116 ep->GPSweek = week; 117 117 } 118 118 else if (ii == 2) { … … 129 129 } 130 130 else if (ii == 6) { 131 double dd; 132 int GPSweek; 133 int ii; 134 in >> ep->IDOT >> dd >> GPSweek >> ii; 131 in >> ep->IDOT; 135 132 } 136 133 else if (ii == 7) { 137 double hlp; 138 double health; 139 in >> hlp >> health >> ep->TGD >> ep->IODC; 134 double hlp, health; 135 in >> hlp >> health >> ep->TGD >> ep->IODC; 140 136 } 141 137 else if (ii == 8) { -
trunk/BNS/bnseph.h
r778 r800 8 8 public: 9 9 QString prn; 10 intGPSweek;11 intTOW; // [s]12 intTOC; // [s]13 intTOE; // [s]14 intIODE;15 intIODC;10 double GPSweek; 11 double TOW; // [s] 12 double TOC; // [s] 13 double TOE; // [s] 14 double IODE; 15 double IODC; 16 16 17 17 double clock_bias; // [s]
Note:
See TracChangeset
for help on using the changeset viewer.