AP_InertialSensor: fix example

This commit is contained in:
Pierre Kancir 2021-02-08 15:42:17 +01:00 committed by Andrew Tridgell
parent f2570d49a1
commit c8a7ab1a75
1 changed files with 4 additions and 0 deletions

View File

@ -5,10 +5,14 @@
#include <AP_HAL/AP_HAL.h>
#include <AP_BoardConfig/AP_BoardConfig.h>
#include <AP_InertialSensor/AP_InertialSensor.h>
#include <AP_ExternalAHRS/AP_ExternalAHRS.h>
const AP_HAL::HAL &hal = AP_HAL::get_HAL();
static AP_InertialSensor ins;
#if HAL_EXTERNAL_AHRS_ENABLED
static AP_ExternalAHRS eAHRS;
#endif // HAL_EXTERNAL_AHRS_ENABLED
static void display_offsets_and_scaling();
static void run_test();