X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FYASim%2FThruster.cpp;h=cd57745a60b6d2a2129939cb0c5daf5228388291;hb=3ec74d79c23347add2afa088b05ad29af975f65f;hp=bd3aa46b4688628f863afd73a10503f583589ca2;hpb=ad79ee48976e17e3448ea577993ddacf6943be1c;p=flightgear.git diff --git a/src/FDM/YASim/Thruster.cpp b/src/FDM/YASim/Thruster.cpp index bd3aa46b4..cd57745a6 100644 --- a/src/FDM/YASim/Thruster.cpp +++ b/src/FDM/YASim/Thruster.cpp @@ -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