stop manually defining physical constants

This commit is contained in:
Daniel Agar
2018-04-10 13:50:57 -04:00
committed by Lorenz Meier
parent 7538ea44e3
commit d75fd72c02
27 changed files with 66 additions and 84 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
############################################################################
set(SRCS
airspeed.c
airspeed.cpp
battery.cpp
board_serial.c
bson/tinybson.c
@@ -236,7 +236,7 @@ float calc_true_airspeed(float total_pressure, float static_pressure, float temp
{
float density = get_air_density(static_pressure, temperature_celsius);
if (density < 0.0001f || !isfinite(density)) {
if (density < 0.0001f || !PX4_ISFINITE(density)) {
density = CONSTANTS_AIR_DENSITY_SEA_LEVEL_15C;
}