mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 22:17:01 +08:00
[sim] fix simulation using baro_amsys
This commit is contained in:
@@ -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); \
|
||||||
|
|||||||
Reference in New Issue
Block a user