mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 16:48:29 -04:00
Filter - remove obsolete warning from comments re alloc/malloc dangers
This commit is contained in:
parent
441413f1c6
commit
bdda74fd28
@ -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 <T> is the type of data being filtered.
|
||||
// 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>
|
||||
class AverageFilter : public FilterWithBuffer<T,FILTER_SIZE>
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user