Browse Source

Copter: Move AP_Generator to AP_Vehicle

c415-sdk
Gone4Dirt 4 years ago committed by Peter Barker
parent
commit
434af4a4d4
  1. 3
      ArduCopter/Copter.cpp
  2. 4
      ArduCopter/system.cpp

3
ArduCopter/Copter.cpp

@ -181,9 +181,6 @@ const AP_Scheduler::Task Copter::scheduler_tasks[] = { @@ -181,9 +181,6 @@ const AP_Scheduler::Task Copter::scheduler_tasks[] = {
#if WINCH_ENABLED == ENABLED
SCHED_TASK_CLASS(AP_Winch, &copter.g2.winch, update, 50, 50),
#endif
#if GENERATOR_ENABLED
SCHED_TASK_CLASS(AP_Generator_RichenPower, &copter.generator, update, 10, 50),
#endif
#ifdef USERHOOK_FASTLOOP
SCHED_TASK(userhook_FastLoop, 100, 75),
#endif

4
ArduCopter/system.cpp

@ -55,10 +55,6 @@ void Copter::init_ardupilot() @@ -55,10 +55,6 @@ void Copter::init_ardupilot()
// setup telem slots with serial ports
gcs().setup_uarts();
#if GENERATOR_ENABLED
generator.init();
#endif
#if OSD_ENABLED == ENABLED
osd.init();
#endif

Loading…
Cancel
Save