diff --git a/AntennaTracker/AntennaTracker.pde b/AntennaTracker/AntennaTracker.pde index 339ef6f571..5b27be7164 100644 --- a/AntennaTracker/AntennaTracker.pde +++ b/AntennaTracker/AntennaTracker.pde @@ -64,6 +64,7 @@ #include #include #include +#include // Configuration #include "config.h" @@ -128,9 +129,11 @@ AP_ADC_ADS7844 apm1_adc; AP_InertialSensor ins; +static RangeFinder rng; + // Inertial Navigation EKF #if AP_AHRS_NAVEKF_AVAILABLE -AP_AHRS_NavEKF ahrs(ins, barometer, gps); +AP_AHRS_NavEKF ahrs(ins, barometer, gps, rng); #else AP_AHRS_DCM ahrs(ins, barometer, gps); #endif