mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 16:23:56 -04:00
AP_Baro: examples: BARO_generic: instantiate sitl to fix nullptr panic
This commit is contained in:
parent
15372e9213
commit
798c3fd0b7
@ -32,6 +32,11 @@ static uint32_t timer;
|
|||||||
static uint8_t counter;
|
static uint8_t counter;
|
||||||
static AP_BoardConfig board_config;
|
static AP_BoardConfig board_config;
|
||||||
|
|
||||||
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
|
#include <SITL/SITL.h>
|
||||||
|
SITL::SITL sitl;
|
||||||
|
#endif
|
||||||
|
|
||||||
void setup();
|
void setup();
|
||||||
void loop();
|
void loop();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user