From 39fd24ed14feb9fd04ef3558facd5e0be01dcd22 Mon Sep 17 00:00:00 2001 From: rmackay9 Date: Sun, 25 Mar 2012 16:14:07 +0900 Subject: [PATCH] Filter - remove obsolete warning from comments re alloc/malloc dangers --- libraries/Filter/AverageFilter.h | 3 +-- libraries/Filter/ModeFilter.h | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/libraries/Filter/AverageFilter.h b/libraries/Filter/AverageFilter.h index 5fa0406819..37bc05a566 100644 --- a/libraries/Filter/AverageFilter.h +++ b/libraries/Filter/AverageFilter.h @@ -8,8 +8,6 @@ /// @file AverageFilter.h /// @brief A class to provide the average of a number of samples -/// -/// DO NOT CREATE AND DESTROY INSTANCES OF THIS CLASS BECAUSE THE ALLOC/MALLOC WILL LEAD TO MEMORY FRAGMENTATION #ifndef AverageFilter_h #define AverageFilter_h @@ -20,6 +18,7 @@ // 1st parameter is the type of data being filtered. // 2nd parameter is a larger data type used during summation to prevent overflows +// 3rd parameter is the number of elements in the filter template class AverageFilter : public FilterWithBuffer { diff --git a/libraries/Filter/ModeFilter.h b/libraries/Filter/ModeFilter.h index bdb56a4246..4335ad8ae7 100644 --- a/libraries/Filter/ModeFilter.h +++ b/libraries/Filter/ModeFilter.h @@ -9,8 +9,6 @@ /// @file ModeFilter.h /// @brief A class to apply a mode filter which is basically picking the median value from the last x samples /// the filter size (i.e buffer size) should always be an odd number -/// -/// DO NOT CREATE AND DESTROY INSTANCES OF THIS CLASS BECAUSE THE ALLOC/MALLOC WILL LEAD TO MEMORY FRAGMENTATION #ifndef ModeFilter_h #define ModeFilter_h