AP_Vehicle: add instance for RichenPower generator

This commit is contained in:
Peter Barker 2019-11-07 11:38:53 +11:00 committed by Randy Mackay
parent 3001812630
commit 4296f6ed4b

View File

@ -26,6 +26,7 @@
#include <AP_BoardConfig/AP_BoardConfig_CAN.h>
#include <AP_Button/AP_Button.h>
#include <AP_GPS/AP_GPS.h>
#include <AP_Generator/AP_Generator_RichenPower.h>
#include <AP_Logger/AP_Logger.h>
#include <AP_Notify/AP_Notify.h> // Notify library
#include <AP_Param/AP_Param.h>
@ -250,6 +251,10 @@ protected:
static const struct AP_Param::GroupInfo var_info[];
static const struct AP_Scheduler::Task scheduler_tasks[];
#if GENERATOR_ENABLED
AP_Generator_RichenPower generator;
#endif
private:
// delay() callback that processing MAVLink packets