Changeset 2988 in ntrip
- Timestamp:
- Feb 8, 2011, 5:08:02 PM (14 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncutils.cpp ¶
r2582 r2988 191 191 } 192 192 193 // Transformation xyz --> radial, along track, out-of-plane 194 //////////////////////////////////////////////////////////////////////////// 195 void XYZ_to_RSW(const ColumnVector& rr, const ColumnVector& vv, 196 const ColumnVector& xyz, ColumnVector& rsw) { 197 198 ColumnVector along = vv / vv.norm_Frobenius(); 199 ColumnVector cross = crossproduct(rr, vv); cross /= cross.norm_Frobenius(); 200 ColumnVector radial = crossproduct(along, cross); 201 202 rsw.ReSize(3); 203 rsw(1) = DotProduct(xyz, radial); 204 rsw(2) = DotProduct(xyz, along); 205 rsw(3) = DotProduct(xyz, cross); 206 } 207 193 208 // Rectangular Coordinates -> Ellipsoidal Coordinates 194 209 //////////////////////////////////////////////////////////////////////////// -
TabularUnified trunk/BNC/bncutils.h ¶
r2582 r2988 47 47 const ColumnVector& rsw, ColumnVector& xyz); 48 48 49 void XYZ_to_RSW(const ColumnVector& rr, const ColumnVector& vv, 50 const ColumnVector& xyz, ColumnVector& rsw); 51 49 52 t_irc xyz2ell(const double* XYZ, double* Ell); 50 53 -
TabularUnified trunk/BNC/combination/bnccomb.cpp ¶
r2987 r2988 23 23 #include "bncsettings.h" 24 24 #include "bncmodel.h" 25 #include "bncutils.h" 25 26 26 27 using namespace std; … … 344 345 prevEph->position(newCorr->tt.gpsw(), newCorr->tt.gpssec(), 345 346 oldXC.data(), oldVV.data()); 347 346 348 ColumnVector newXC(4); 347 349 ColumnVector newVV(3); 348 350 lastEph->position(newCorr->tt.gpsw(), newCorr->tt.gpssec(), 349 351 newXC.data(), newVV.data()); 352 353 ColumnVector dX = newXC.Rows(1,3) - oldXC.Rows(1,3); 354 ColumnVector dRAO(3); 355 XYZ_to_RSW(newXC.Rows(1,3), newVV, dX, dRAO); 350 356 } 351 357
Note:
See TracChangeset
for help on using the changeset viewer.