Plane: add support for AP_Generator
This commit is contained in:
parent
a679cd9b92
commit
ee2118f93a
@ -104,6 +104,9 @@ 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
|
||||
|
@ -69,6 +69,10 @@ 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();
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user