]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/Thruster.cpp
Sync. w. JSB CVS as of 15/01/2007
[flightgear.git] / src / FDM / YASim / Thruster.cpp
index bd3aa46b4688628f863afd73a10503f583589ca2..cd57745a60b6d2a2129939cb0c5daf5228388291 100644 (file)
@@ -50,6 +50,7 @@ void Thruster::setMixture(float mixture)
     _mixture = Math::clamp(mixture, 0, 1);
 }
 
+
 void Thruster::setStarter(bool starter)
 {
     _starter = starter;
@@ -61,11 +62,11 @@ void Thruster::setWind(float* wind)
     for(i=0; i<3; i++) _wind[i] = wind[i];
 }
 
-void Thruster::setAir(float pressure, float temp)
+void Thruster::setAir(float pressure, float temp, float density)
 {
     _pressure = pressure;
     _temp = temp;
-    _rho = _pressure / (287.1 * _temp);
+    _rho = density;
 }
 
 }; // namespace yasim