Skip to content

Commit

Permalink
Plane: Guard External Control with a define
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
  • Loading branch information
Ryanf55 committed Aug 10, 2023
1 parent 9f07aa0 commit 84a4942
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ArduPlane/Plane.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@
#include <AP_Landing/AP_Landing.h>
#include <AP_LandingGear/AP_LandingGear.h> // Landing Gear library
#include <AP_Follow/AP_Follow.h>
#include <AP_ExternalControl/AP_ExternalControl_config.h>
#if AP_EXTERNAL_CONTROL_ENABLED
#include <AP_ExternalControl/AP_ExternalControl.h>
#endif

#include "GCS_Mavlink.h"
#include "GCS_Plane.h"
Expand Down Expand Up @@ -772,7 +775,9 @@ class Plane : public AP_Vehicle {
AP_Param param_loader {var_info};

// dummy implementation of external control
#if AP_EXTERNAL_CONTROL_ENABLED
AP_ExternalControl external_control;
#endif

static const AP_Scheduler::Task scheduler_tasks[];
static const AP_Param::Info var_info[];
Expand Down

0 comments on commit 84a4942

Please sign in to comment.