mirror of https://github.com/ArduPilot/ardupilot
18f1f8bea8
When the the variable in which we are saving the current sum is of integral type we can use a much more optimized apply() method: instead of looping the entire number of samples adding them up, we always keep the current sum in a member. It also allows the caller to decide the type it wants to use to get the average: this may be dictated by another interface it uses or it may want to avoid the implicit truncate in the return of apply(). |
||
---|---|---|
.. | ||
examples | ||
AverageFilter.h | ||
Butter.h | ||
DerivativeFilter.cpp | ||
DerivativeFilter.h | ||
Filter.h | ||
FilterClass.h | ||
FilterWithBuffer.h | ||
LowPassFilter.cpp | ||
LowPassFilter.h | ||
LowPassFilter2p.cpp | ||
LowPassFilter2p.h | ||
ModeFilter.h | ||
keywords.txt |