mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
AP_Module: fix example
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user