mirror of https://github.com/ArduPilot/ardupilot
AP_Logger: fix examples
Having a valid AP_Scheduler is now a requirement
This commit is contained in:
parent
4ec1717361
commit
eee0f028ba
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue