Browse Source

Filter - remove obsolete warning from comments re alloc/malloc dangers

mission-4.1.18
rmackay9 13 years ago
parent
commit
39fd24ed14
  1. 3
      libraries/Filter/AverageFilter.h
  2. 2
      libraries/Filter/ModeFilter.h

3
libraries/Filter/AverageFilter.h

@ -8,8 +8,6 @@
/// @file AverageFilter.h /// @file AverageFilter.h
/// @brief A class to provide the average of a number of samples /// @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 #ifndef AverageFilter_h
#define AverageFilter_h #define AverageFilter_h
@ -20,6 +18,7 @@
// 1st parameter <T> is the type of data being filtered. // 1st parameter <T> is the type of data being filtered.
// 2nd parameter <U> is a larger data type used during summation to prevent overflows // 2nd parameter <U> is a larger data type used during summation to prevent overflows
// 3rd parameter <FILTER_SIZE> is the number of elements in the filter
template <class T, class U, uint8_t FILTER_SIZE> template <class T, class U, uint8_t FILTER_SIZE>
class AverageFilter : public FilterWithBuffer<T,FILTER_SIZE> class AverageFilter : public FilterWithBuffer<T,FILTER_SIZE>
{ {

2
libraries/Filter/ModeFilter.h

@ -9,8 +9,6 @@
/// @file ModeFilter.h /// @file ModeFilter.h
/// @brief A class to apply a mode filter which is basically picking the median value from the last x samples /// @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 /// 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 #ifndef ModeFilter_h
#define ModeFilter_h #define ModeFilter_h

Loading…
Cancel
Save