|
From: Jon S. B. <jb...@us...> - 2011-07-28 12:48:23
|
Update of /cvsroot/jsbsim/JSBSim/src/models/atmosphere
In directory vz-cvs-3.sog:/tmp/cvs-serv15987/src/models/atmosphere
Modified Files:
FGStandardAtmosphere.cpp
Log Message:
Major modification that moves towards completely independent engine models
Index: FGStandardAtmosphere.cpp
===================================================================
RCS file: /cvsroot/jsbsim/JSBSim/src/models/atmosphere/FGStandardAtmosphere.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** FGStandardAtmosphere.cpp 20 Jul 2011 12:26:41 -0000 1.16
--- FGStandardAtmosphere.cpp 28 Jul 2011 12:48:19 -0000 1.17
***************
*** 251,267 ****
if (altitude > 100000.0) altitude = 100000.0;
! double alt[6];
! double coef[6] = { 2116.22,
! -7.583514352598E-02,
! 1.045494405501E-06,
! -5.881341527124E-12,
! 3.482031690718E-18,
! 5.683922549284E-23 };
alt[0] = 1;
! for (int pwr=1; pwr<=5; pwr++) alt[pwr] = alt[pwr-1]*altitude;
double press = 0.0;
! for (int ctr=0; ctr<=5; ctr++) press += coef[ctr]*alt[ctr];
return press;
}
--- 251,266 ----
if (altitude > 100000.0) altitude = 100000.0;
! double alt[5];
! const double coef[5] = { 2116.217,
! -7.648932746E-2,
! 1.0925498604E-6,
! -7.1135726027E-12,
! 1.7470331356E-17 };
alt[0] = 1;
! for (int pwr=1; pwr<=4; pwr++) alt[pwr] = alt[pwr-1]*altitude;
double press = 0.0;
! for (int ctr=0; ctr<=4; ctr++) press += coef[ctr]*alt[ctr];
return press;
}
|