corrected some wrong units (used in airspeed calculation)

This commit is contained in:
Thomas Gubler
2013-02-22 22:53:38 +01:00
parent c3aad047a5
commit 2c2c65d446
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -150,5 +150,5 @@ void quat2rot(const float Q[4], float R[9])
float get_air_density(float static_pressure, float temperature_celsius)
{
return static_pressure / (CONSTANTS_AIR_GAS_CONST * (temperature_celsius + CONSTANTS_ABSOLUTE_NULL_KELVIN));
return static_pressure / (CONSTANTS_AIR_GAS_CONST * (temperature_celsius - CONSTANTS_ABSOLUTE_NULL_CELSIUS));
}