From 70246059edfa2d3ee75f0fa388ff333a3805dc34 Mon Sep 17 00:00:00 2001 From: Gone4Dirt Date: Thu, 22 Oct 2020 18:18:04 +0100 Subject: [PATCH] Plane: Move AP_Generator to AP_Vehicle --- ArduPlane/ArduPlane.cpp | 3 --- ArduPlane/system.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/ArduPlane/ArduPlane.cpp b/ArduPlane/ArduPlane.cpp index fb720083d1..365e68e08e 100644 --- a/ArduPlane/ArduPlane.cpp +++ b/ArduPlane/ArduPlane.cpp @@ -106,9 +106,6 @@ const AP_Scheduler::Task Plane::scheduler_tasks[] = { #if OSD_ENABLED == ENABLED SCHED_TASK(publish_osd_info, 1, 10), #endif -#if GENERATOR_ENABLED - SCHED_TASK_CLASS(AP_Generator_RichenPower, &plane.generator, update, 10, 50), -#endif #if LANDING_GEAR_ENABLED == ENABLED SCHED_TASK(landing_gear_update, 5, 50), #endif diff --git a/ArduPlane/system.cpp b/ArduPlane/system.cpp index 4c9ac37e24..300db49f77 100644 --- a/ArduPlane/system.cpp +++ b/ArduPlane/system.cpp @@ -70,9 +70,6 @@ void Plane::init_ardupilot() // setup telem slots with serial ports gcs().setup_uarts(); -#if GENERATOR_ENABLED - generator.init(); -#endif #if OSD_ENABLED == ENABLED osd.init();