AP_Scheduler: fix example

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

View File

@ -4,6 +4,7 @@
#include <AP_HAL/AP_HAL.h>
#include <AP_InertialSensor/AP_InertialSensor.h>
#include <AP_ExternalAHRS/AP_ExternalAHRS.h>
#include <AP_Scheduler/AP_Scheduler.h>
#include <AP_BoardConfig/AP_BoardConfig.h>
#include <AP_Logger/AP_Logger.h>
@ -21,6 +22,9 @@ public:
private:
AP_InertialSensor ins;
#if HAL_EXTERNAL_AHRS_ENABLED
AP_ExternalAHRS eAHRS;
#endif // HAL_EXTERNAL_AHRS_ENABLED
AP_Scheduler scheduler{nullptr};
uint32_t ins_counter;