AP_Logger: fix examples

Having a valid AP_Scheduler is now a requirement
This commit is contained in:
Peter Barker 2020-04-23 11:30:41 +10:00 committed by Randy Mackay
parent 4ec1717361
commit eee0f028ba
2 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@
#include <AP_HAL/AP_HAL.h>
#include <AP_Logger/AP_Logger.h>
#include <AP_Scheduler/AP_Scheduler.h>
#include <GCS_MAVLink/GCS_Dummy.h>
#include <stdio.h>
@ -106,6 +107,7 @@ private:
AP_Int32 log_bitmask;
AP_Logger logger{log_bitmask};
AP_Scheduler scheduler;
void Log_Write_TypeMessages();
void Log_Write_TypeMessages_Log_Write();

View File

@ -4,6 +4,7 @@
*/
#include <AP_HAL/AP_HAL.h>
#include <AP_Scheduler/AP_Scheduler.h>
#include <AP_Logger/AP_Logger.h>
#include <GCS_MAVLink/GCS_Dummy.h>
#include <stdio.h>
@ -41,6 +42,7 @@ private:
AP_Int32 log_bitmask;
AP_Logger logger{log_bitmask};
AP_Scheduler scheduler;
};