Open dimembermatt opened 4 years ago
See moving average (the easy implementation) and kalman filters (a more advanced implementation).
Reference #26 for a mockup of the SMAFilter class.
Add tests for EMAA and Kalman filter.
Nevermind, forgot we need some tests.
Currently, the sensor classes grab data from the ADC and update an internal variable that can later be extracted for MPPT. This typically is exposed to a lot of variance temporally.
We should smooth out our signal input by holding a buffer of N samples size, and taking the moving average of that buffer whenever we get a new output from the sensor.
This needs to be applied for both the current and voltage sensors.