diff --git a/ArduCopter/ArduCopter.pde b/ArduCopter/ArduCopter.pde index e8c3188a5d..d6f0b34c5f 100644 --- a/ArduCopter/ArduCopter.pde +++ b/ArduCopter/ArduCopter.pde @@ -78,7 +78,7 @@ http://code.google.com/p/ardupilot-mega/downloads/list #include // RC Channel Library #include // Range finder library #include // Optical Flow library -#include +#include // Mode Filter from Filter library #include // APM relay #include // MAVLink GCS definitions #include @@ -268,7 +268,7 @@ GCS_MAVLINK gcs3; // SONAR selection //////////////////////////////////////////////////////////////////////////////// // -ModeFilter sonar_mode_filter; +ModeFilterInt16 sonar_mode_filter(5,2); #if CONFIG_SONAR == ENABLED #if CONFIG_SONAR_SOURCE == SONAR_SOURCE_ADC AP_AnalogSource_ADC sonar_analog_source( &adc, CONFIG_SONAR_SOURCE_ADC_CHANNEL, 0.25);