mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
Filter: added 5 point average float filter
This commit is contained in:
parent
1ff9461bfb
commit
9fd3d15026
@ -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,4> AverageFilterUInt32_Size4;
|
||||||
typedef AverageFilter<uint32_t,float,5> AverageFilterUInt32_Size5;
|
typedef AverageFilter<uint32_t,float,5> AverageFilterUInt32_Size5;
|
||||||
|
|
||||||
|
typedef AverageFilter<float,float,5> AverageFilterFloat_Size5;
|
||||||
|
|
||||||
// Public Methods //////////////////////////////////////////////////////////////
|
// Public Methods //////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
template <class T, class U, uint8_t FILTER_SIZE>
|
template <class T, class U, uint8_t FILTER_SIZE>
|
||||||
@ -97,4 +99,4 @@ void AverageFilter<T,U,FILTER_SIZE>::reset()
|
|||||||
_num_samples = 0;
|
_num_samples = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user