From 69132e0fe74d4c06c03f47f02e230f00d2966209 Mon Sep 17 00:00:00 2001 From: rmackay9 Date: Sun, 26 Feb 2012 15:35:14 +0900 Subject: [PATCH] ArduCopter - change sonar to use new mode filter from Filter library --- ArduCopter/ArduCopter.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);