AP_Module: fix example

This commit is contained in:
Pierre Kancir
2021-03-03 18:07:38 +11:00
committed by Andrew Tridgell
parent 7a5a7b1eb5
commit aaf7504ac8
@@ -7,6 +7,7 @@
#include <AP_Module/AP_Module.h>
#include <AP_GPS/AP_GPS.h>
#include <AP_Baro/AP_Baro.h>
#include <AP_ExternalAHRS/AP_ExternalAHRS.h>
void setup();
void loop();
@@ -15,6 +16,9 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL();
// sensor declaration
static AP_InertialSensor ins;
#if HAL_EXTERNAL_AHRS_ENABLED
static AP_ExternalAHRS eAHRS;
#endif // HAL_EXTERNAL_AHRS_ENABLED
static AP_GPS gps;
static AP_Baro baro;
static AP_SerialManager serial_manager;