From cc61eafd8bd6296511b00abb8943c5248538a610 Mon Sep 17 00:00:00 2001 From: jasonshort Date: Mon, 7 Feb 2011 05:58:29 +0000 Subject: [PATCH] adjusted filter for faster response git-svn-id: https://arducopter.googlecode.com/svn/trunk@1605 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- ArduCopterMega/sensors.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopterMega/sensors.pde b/ArduCopterMega/sensors.pde index fa08ca9706..333d0ae824 100644 --- a/ArduCopterMega/sensors.pde +++ b/ArduCopterMega/sensors.pde @@ -18,7 +18,7 @@ void read_barometer(void){ APM_BMP085.Read(); // Get new data from absolute pressure sensor //abs_pressure = (abs_pressure + APM_BMP085.Press) >> 1; // Small filtering - abs_pressure = ((float)abs_pressure * .9) + ((float)APM_BMP085.Press * .1); // large filtering + abs_pressure = ((float)abs_pressure * .7) + ((float)APM_BMP085.Press * .3); // large filtering scaling = (float)abs_pressure_ground / (float)abs_pressure; temp = ((float)ground_temperature / 10.f) + 273.15; x = log(scaling) * temp * 29271.267f;