From fa7c58473348b8e49c0a3e88b87d871f9026c1d0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 2 Feb 2015 08:11:34 +1100 Subject: [PATCH] AP_Mount: fixed build on non-EKF systems --- libraries/AP_Mount/AP_Mount.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Mount/AP_Mount.cpp b/libraries/AP_Mount/AP_Mount.cpp index 3d69751783..b46a6819be 100644 --- a/libraries/AP_Mount/AP_Mount.cpp +++ b/libraries/AP_Mount/AP_Mount.cpp @@ -420,10 +420,12 @@ void AP_Mount::init(const AP_SerialManager& serial_manager) _backends[instance] = new AP_Mount_Servo(*this, state[instance], instance); _num_instances++; +#if AP_AHRS_NAVEKF_AVAILABLE // check for MAVLink mounts } else if (mount_type == Mount_Type_MAVLink) { _backends[instance] = new AP_Mount_MAVLink(*this, state[instance], instance); _num_instances++; +#endif // check for Alexmos mounts } else if (mount_type == Mount_Type_Alexmos) {