Skip to content

Commit 5d7fe77

Browse files
committed
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 <[email protected]> I agree to the CLA!
1 parent 734313e commit 5d7fe77

File tree

1 file changed

+200
-163
lines changed

1 file changed

+200
-163
lines changed

0 commit comments

Comments
 (0)