mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Working scheduling of ADC 🎉
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
#ifndef INC_EXPMOVINGAVERAGE_H_
|
||||
#define INC_EXPMOVINGAVERAGE_H_
|
||||
|
||||
// max size = 127
|
||||
template <class T, uint8_t weighting> struct expMovingAverage {
|
||||
int32_t sum;
|
||||
void update(T const val) { sum = ((val * weighting) + (sum * (256 - weighting))) / 256; }
|
||||
|
||||
Reference in New Issue
Block a user