mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 07:13:56 -04:00
ArduPlane: add option to disable relay and servorelay libraries
This commit is contained in:
parent
cd8a699675
commit
9d3ebf0d54
@ -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),
|
||||
|
@ -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_
|
||||
|
@ -42,7 +42,9 @@ void Plane::init_ardupilot()
|
||||
#endif
|
||||
rc().init();
|
||||
|
||||
#if AP_RELAY_ENABLED
|
||||
relay.init();
|
||||
#endif
|
||||
|
||||
// initialise notify system
|
||||
notify.init();
|
||||
|
Loading…
Reference in New Issue
Block a user