ArduPlane: add option to disable relay and servorelay libraries

This commit is contained in:
Peter Barker 2023-06-06 18:05:07 +10:00 committed by Peter Barker
parent cd8a699675
commit 9d3ebf0d54
3 changed files with 6 additions and 0 deletions

View File

@ -77,7 +77,9 @@ const AP_Scheduler::Task Plane::scheduler_tasks[] = {
SCHED_TASK(ekf_check, 10, 75, 54),
SCHED_TASK_CLASS(GCS, (GCS*)&plane._gcs, update_receive, 300, 500, 57),
SCHED_TASK_CLASS(GCS, (GCS*)&plane._gcs, update_send, 300, 750, 60),
#if AP_SERVORELAYEVENTS_ENABLED
SCHED_TASK_CLASS(AP_ServoRelayEvents, &plane.ServoRelayEvents, update_events, 50, 150, 63),
#endif
SCHED_TASK_CLASS(AP_BattMonitor, &plane.battery, read, 10, 300, 66),
SCHED_TASK_CLASS(AP_Baro, &plane.barometer, accumulate, 50, 150, 69),
SCHED_TASK(read_rangefinder, 50, 100, 78),

View File

@ -754,9 +754,11 @@ const AP_Param::Info Plane::var_info[] = {
// @Path: AP_Arming.cpp,../libraries/AP_Arming/AP_Arming.cpp
GOBJECT(arming, "ARMING_", AP_Arming_Plane),
#if AP_RELAY_ENABLED
// @Group: RELAY_
// @Path: ../libraries/AP_Relay/AP_Relay.cpp
GOBJECT(relay, "RELAY_", AP_Relay),
#endif
#if PARACHUTE == ENABLED
// @Group: CHUTE_

View File

@ -42,7 +42,9 @@ void Plane::init_ardupilot()
#endif
rc().init();
#if AP_RELAY_ENABLED
relay.init();
#endif
// initialise notify system
notify.init();