From fcc0b317cbb24cd1d928edc900b6ef08811bb1dd Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 14 Oct 2004 11:29:07 +0000 Subject: [PATCH] Roy Vegard Ovesen: I've put together a readme file that describes how to configure the digital filters. --- docs-mini/README.digitalfilters | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 docs-mini/README.digitalfilters diff --git a/docs-mini/README.digitalfilters b/docs-mini/README.digitalfilters new file mode 100644 index 000000000..c45ed1ccb --- /dev/null +++ b/docs-mini/README.digitalfilters @@ -0,0 +1,51 @@ +Four different types of digital low-pass filters can be configured inside the +autopilot configuration file. The types of filter are: + +* Exponential +* Double exponential +* Moving average +* Noise spike filter + +Example: + + + pressure-rate-filter + false + double-exponential + /autopilot/internal/pressure-rate + /autopilot/internal/filtered-pressure-rate + 0.1 + + +This will filter the pressure-rate property. The output will be to a new +property called filtered-pressure-rate. You can select any numerical property +from the property tree. The input property will not be affected by the filter, +it will stay the same as it would if no filter was configured. + + The name of the filter. Give it a sensible name! + + If this tag is set to true debugging info will be printed on the +console. + + The type of filter. This can be exponential, double-exponential, +moving-average or noise-spike. + + The input property to be filtered. This should of course be a +numerical property, filtering a text string or a boolean value does not make +sense. + + The filtered value. You can make up any new property. + +These are the tags that are applicable to all filter types. The folowing tags +are filter specific. + + This tag is only applicable for the exponential and +double-exponential filter types. It controls the bandwidth of the filter. The +bandwith in Hz of the filter is: 1/filter-time. So a low-pass filter with a +bandwith of 10Hz would have a filter time of 1/10 = 0.1 + + This tag only makes sense for the moving-average filter. It says how +many past samples to average. + + This tag is applicable for the noise-spike filter. Is +says how much the value is allowed to change per second.