[baro] PRINT_CONFIG_MSG for USE_BARO_BOARD and USE_BAROMETER

This commit is contained in:
Felix Ruess
2013-11-20 13:32:25 +01:00
parent 74bb27abc5
commit a6b8f054ce
4 changed files with 6 additions and 0 deletions
@@ -20,6 +20,8 @@
<define name="LOITER_TRIM"/>
<define name="STRONG_WIND"/>
<define name="USE_BAROMETER" value="TRUE"/>
<subsystem name="radio_control" type="ppm"/>
<!-- Communication -->
@@ -42,6 +44,7 @@
<modules>
<load name="sys_mon.xml"/>
<load name="baro_sim.xml"/>
</modules>
<servos>
@@ -55,6 +55,7 @@
#endif
#include "subsystems/air_data.h"
#if USE_BARO_BOARD
PRINT_CONFIG_MSG("USE_BARO_BOARD is TRUE: Reading onboard baro.")
#include "subsystems/sensors/baro.h"
#endif
#include "subsystems/ins.h"
+1
View File
@@ -55,6 +55,7 @@
#include "subsystems/air_data.h"
#if USE_BARO_BOARD
PRINT_CONFIG_MSG("USE_BARO_BOARD is TRUE: Reading onboard baro.")
#include "subsystems/sensors/baro.h"
#endif
@@ -47,6 +47,7 @@ float ins_alt;
float ins_alt_dot;
#if USE_BAROMETER
PRINT_CONFIG_MSG("USE_BAROMETER is TRUE: Using baro for altitude estimation.")
#include "subsystems/sensors/baro.h"
#include "math/pprz_isa.h"
float ins_qfe;