Commit Graph
2 Commits
Author SHA1 Message Date
windkh d72e20047b Bugfix: new reference value is the average after 120min instead of average after 150min.
Reduced footprint.

I agree to the CLA.

Signed-off-by: windkh <karl-heinz.wind@web.de>
2015-07-16 21:48:08 +02:00
windkh 5d7fe779e0 Refactored forecast algorithm
- reduced footprint by storing only the last few samples instead of all 180
- fixed wrong calculation: 65/1023 factor replaced with a conversion factor hPa to kPa
- fixed error when 180 minutes were reached: sketch started at 5 min instead of 6 triggering a wrong average calculation

Cleaned up code
- removed unused variable
- fixed unit Pa to hPa in serial print
- introduced constants and enum for better readability

Signed-off-by: windkh <karl-heinz.wind@web.de>

I agree to the CLA!
2015-07-08 22:37:38 +02:00