Filter: added 5 point average float filter

This commit is contained in:
Andrew Tridgell 2012-06-22 14:07:13 +10:00
parent 1ff9461bfb
commit 9fd3d15026
1 changed files with 3 additions and 1 deletions

View File

@ -64,6 +64,8 @@ typedef AverageFilter<uint32_t,float,3> AverageFilterUInt32_Size3;
typedef AverageFilter<uint32_t,float,4> AverageFilterUInt32_Size4;
typedef AverageFilter<uint32_t,float,5> AverageFilterUInt32_Size5;
typedef AverageFilter<float,float,5> AverageFilterFloat_Size5;
// Public Methods //////////////////////////////////////////////////////////////
template <class T, class U, uint8_t FILTER_SIZE>
@ -97,4 +99,4 @@ void AverageFilter<T,U,FILTER_SIZE>::reset()
_num_samples = 0;
}
#endif
#endif