mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
Filter - remove obsolete warning from comments re alloc/malloc dangers
This commit is contained in:
parent
1f4cfb9333
commit
39fd24ed14
@ -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>
|
||||||
{
|
{
|
||||||
|
@ -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…
Reference in New Issue
Block a user