]> git.mxchange.org Git - flightgear.git/commitdiff
make YASim report /velocities/mach as the speed's norm
authorjanodesbois <jean.pellotier@wanadoo.fr>
Thu, 31 Oct 2013 19:25:08 +0000 (20:25 +0100)
committerjanodesbois <jean.pellotier@wanadoo.fr>
Thu, 31 Oct 2013 19:25:08 +0000 (20:25 +0100)
src/FDM/YASim/YASim.cxx

index c21db1e8f179597d9d081e7c6fd9c90f2b125796..97c297cb70f582d56c34d532fb0aaa7083abce36 100644 (file)
@@ -489,7 +489,7 @@ void YASim::copyFromYASim()
         *SLUG2KG * M2FT*M2FT*M2FT;
     _set_V_equiv_kts(Atmosphere::calcVEAS(v[0], P, T, D)*MPS2KTS);
     _set_V_calibrated_kts(Atmosphere::calcVCAS(v[0], P, T)*MPS2KTS);
-    _set_Mach_number(Atmosphere::calcMach(v[0], T));
+    _set_Mach_number(Atmosphere::calcMach(Math::mag3(v), T));
 
     // acceleration
     Math::vmul33(xyz2ned, s->acc, v);