Changeset 11104 in ntrip
- Timestamp:
- Oct 21, 2026, 2:00:15 AM (18 hours ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 edited
-
bncantex.cpp (modified) (2 diffs)
-
bncantex.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncantex.cpp
r11102 r11104 786 786 const ColumnVector& vSat, ColumnVector& dx, 787 787 e_attMode mode, double externalYaw, 788 const QString& stateKey) { 788 const QString& stateKey, double* yawUsed) { 789 789 790 790 // separate yaw model states per caller (stateKey), each called in time order … … 890 890 sy /= sqrt(DotProduct(sy,sy)); 891 891 sx = crossproduct(sy, sz); 892 } 893 894 // yaw angle used: rotation of the body x-axis around sz relative to 895 // the velocity-referenced frame (convention of psiEff/externalYaw) 896 if (yawUsed) { 897 if (useVelocityFrame) { 898 *yawUsed = psiEff; 899 } 900 else if (vSat.size() == 3) { 901 ColumnVector Omega(3); Omega(1) = 0.0; Omega(2) = 0.0; Omega(3) = t_CST::omega; 902 ColumnVector vInert = vSat + crossproduct(Omega, xSat); 903 ColumnVector sy0 = crossproduct(sz, vInert); 904 sy0 /= sqrt(DotProduct(sy0,sy0)); 905 ColumnVector sx0 = crossproduct(sy0, sz); 906 *yawUsed = atan2(DotProduct(crossproduct(sx0, sx), sz), DotProduct(sx0, sx)); 907 } 908 else { 909 *yawUsed = 0.0; 910 } 892 911 } 893 912 -
trunk/BNC/src/bncantex.h
r11102 r11104 67 67 e_attMode mode = ATT_COMPUTED, 68 68 double externalYaw = 0.0, 69 const QString& stateKey = QString()); 69 const QString& stateKey = QString(), 70 double* yawUsed = 0); 70 71 71 72 // Drain and return diagnostic logs accumulated by the yaw models.
Note:
See TracChangeset
for help on using the changeset viewer.
