Changeset 6386 in ntrip
- Timestamp:
- Dec 19, 2014, 4:17:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/ephemeris.cpp
r6385 r6386 1102 1102 // Constructor 1103 1103 ////////////////////////////////////////////////////////////////////////////// 1104 t_ephSBAS::t_ephSBAS(float rnxVersion, const QStringList& lines) { 1104 t_ephSBAS::t_ephSBAS(float /* rnxVersion */, const QStringList& /* lines */) { 1105 qDebug() << "not yet implemented"; 1105 1106 } 1106 1107 … … 1108 1109 //////////////////////////////////////////////////////////////////////////// 1109 1110 void t_ephSBAS::set(const sbasephemeris* ee) { 1111 1112 _prn.set('S', ee->satellite - PRN_SBAS_START + 1); 1113 _TOC.set(ee->GPSweek_TOE, double(ee->TOE)); 1114 1115 _IODN = ee->IODN; 1116 _TOW = ee->TOW; 1117 1118 _agf0 = ee->agf0; 1119 _agf1 = ee->agf1; 1120 1121 _x_pos = ee->x_pos * 1.e3; 1122 _x_velocity = ee->x_velocity * 1.e3; 1123 _x_acceleration = ee->x_acceleration * 1.e3; 1124 1125 _y_pos = ee->y_pos * 1.e3; 1126 _y_velocity = ee->y_velocity * 1.e3; 1127 _y_acceleration = ee->y_acceleration * 1.e3; 1128 1129 _z_pos = ee->z_pos * 1.e3; 1130 _z_velocity = ee->z_velocity * 1.e3; 1131 _z_acceleration = ee->z_acceleration * 1.e3; 1132 1133 _ura = ee->URA; 1110 1134 } 1111 1135 … … 1113 1137 //////////////////////////////////////////////////////////////////////////// 1114 1138 t_irc t_ephSBAS::position(int GPSweek, double GPSweeks, double* xc, double* vv) const { 1139 1140 bncTime tt(GPSweek, GPSweeks); 1141 double dt = tt - _TOC; 1142 1143 xc[0] = _x_pos + _x_velocity * dt + _x_acceleration * dt * dt / 2.0; 1144 xc[1] = _y_pos + _y_velocity * dt + _y_acceleration * dt * dt / 2.0; 1145 xc[2] = _z_pos + _z_velocity * dt + _z_acceleration * dt * dt / 2.0; 1146 1147 vv[0] = _x_velocity + _x_acceleration * dt; 1148 vv[1] = _y_velocity + _y_acceleration * dt; 1149 vv[2] = _z_velocity + _z_acceleration * dt; 1150 1151 xc[3] = _agf0 + _agf1 * dt; 1152 1153 return success; 1115 1154 } 1116 1155 1117 1156 // RINEX Format String 1118 1157 ////////////////////////////////////////////////////////////////////////////// 1119 QString t_ephSBAS::toString(double version) const { 1120 } 1158 QString t_ephSBAS::toString(double /* version */) const { 1159 return "not yet impemented\n"; 1160 }
Note:
See TracChangeset
for help on using the changeset viewer.