![]() |
Open FFBoard
Open source force feedback firmware
|
#include <FastAvg.h>
Public Member Functions | |
| FastAvg () | |
| ~FastAvg () | |
| __attribute__ ((optimize("-Ofast"))) void addValue(T value) | |
| T | getAverage () |
| T | process (float value) |
| void | clear () |
Private Attributes | |
| T | samples [LEN+1] = {static_cast<T>(0)} |
| int | currentIndex = 0 |
| T | sumOfSamples = 0 |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |