]> 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 0eb047182f3bb1552b9f97b0d004de308337c4a2..cd57745a60b6d2a2129939cb0c5daf5228388291 100644 (file)
@@ -9,6 +9,7 @@ Thruster::Thruster()
     for(i=0; i<3; i++) _pos[i] = _wind[i] = 0;
     _throttle = 0;
     _mixture = 0;
+    _starter = false;
     _pressure = _temp = _rho = 0;
 }
 
@@ -49,17 +50,23 @@ void Thruster::setMixture(float mixture)
     _mixture = Math::clamp(mixture, 0, 1);
 }
 
+
+void Thruster::setStarter(bool starter)
+{
+    _starter = starter;
+}
+
 void Thruster::setWind(float* wind)
 {
     int i;
     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