[sim] fix simulation using baro_amsys

This commit is contained in:
Gautier Hattenberger
2013-08-28 13:21:41 +02:00
parent 446c7f1f2e
commit d9eb74ce07
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -31,6 +31,7 @@
#ifdef SITL #ifdef SITL
#include "subsystems/gps.h" #include "subsystems/gps.h"
#include "subsystems/navigation/common_nav.h"
#endif #endif
//Messages //Messages
@@ -54,7 +54,13 @@
/** BaroEvent macro. /** BaroEvent macro.
* Need to be maped to one the external baro running has a module * Need to be maped to one the external baro running has a module
*
* Undef if necessary (already defined in a baro_board.h file)
*/ */
#ifdef BaroEvent
#undef BaroEvent
#endif
#define BaroEvent(_b_abs_handler, _b_diff_handler) { \ #define BaroEvent(_b_abs_handler, _b_diff_handler) { \
BARO_ABS_EVENT(baro.absolute, _b_abs_handler); \ BARO_ABS_EVENT(baro.absolute, _b_abs_handler); \
BARO_DIFF_EVENT(baro.differential, _b_diff_handler); \ BARO_DIFF_EVENT(baro.differential, _b_diff_handler); \