AP_Mount: fixed build on non-EKF systems

This commit is contained in:
Andrew Tridgell 2015-02-02 08:11:34 +11:00
parent f77f919588
commit fa7c584733

View File

@ -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) {