Update of /cvsroot/jsbsim/JSBSim/utils/aeromatic++
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv5651
Modified Files:
Aircraft.cpp types.h
Log Message:
Extend the turbine thurst table to 60000ft and fade to zero thrust at 90000ft
Index: Aircraft.cpp
===================================================================
RCS file: /cvsroot/jsbsim/JSBSim/utils/aeromatic++/Aircraft.cpp,v
retrieving revision 1.78
retrieving revision 1.79
diff -C2 -r1.78 -r1.79
*** Aircraft.cpp 7 Apr 2017 07:26:19 -0000 1.78
--- Aircraft.cpp 2 May 2017 11:28:07 -0000 1.79
***************
*** 607,611 ****
file << " CD-0: " << _CD0 << std::endl;
file << " K: " << _Kdi << std::endl;
! file << " Mcrit: " << _Mcrit << std::endl;
file << "-->" << std::endl;
file << std::endl;
--- 607,620 ----
file << " CD-0: " << _CD0 << std::endl;
file << " K: " << _Kdi << std::endl;
! file << " Mcrit: " << _Mcrit << std::endl << std::endl;
!
! float rho = 0.0023769f;
! float V = 1.1f*_stall_speed*KNOTS_TO_FPS;
! float qbar = rho*V*V;
! float L = _CLmax[0]*qbar*_wing.area;
! float n = L/_stall_weight;
! float lfg = G*sqrtf(n*n - 1.0f);
! file << " min. turn radius " << (V*V/lfg) << " ft" << std::endl;
! file << " max. turn rate: " << (lfg/V) << " deg/s" << std::endl;
file << "-->" << std::endl;
file << std::endl;
Index: types.h
===================================================================
RCS file: /cvsroot/jsbsim/JSBSim/utils/aeromatic++/types.h,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** types.h 20 Aug 2016 08:04:10 -0000 1.23
--- types.h 2 May 2017 11:28:07 -0000 1.24
***************
*** 50,53 ****
--- 50,56 ----
MKSTR(AEROMATIC_MICRO_VERSION)
+ #define G 32.0f
+ #define SPEED_OF_SOUND 1125.0f
+
#define PI 3.14159265358979323846
#define DEG_TO_RAD 0.01745329251994329547f
|