Fixed calculation of estimated fg.

Fri, 05 Aug 2022 20:13:11 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 05 Aug 2022 20:13:11 +0200
changeset 390
2a69be28a925
parent 389
a98d45793808
child 391
42936c86cbac

Fixed calculation of estimated fg.

src/EditProductTab3.cpp file | annotate | diff | comparison | revisions
--- a/src/EditProductTab3.cpp	Wed Aug 03 11:09:07 2022 +0200
+++ b/src/EditProductTab3.cpp	Fri Aug 05 20:13:11 2022 +0200
@@ -214,7 +214,7 @@
 	for (i = 0; i < product->mashs.size(); i++) {
 	    if (product->mashs.at(i).step_type == 0)		// Infusion
 		mashinfuse += product->mashs.at(i).step_infuse_amount;
-	    if (product->mashs.at(i).step_temp < 75) {		// Ignore mashout
+	    if (product->mashs.at(i).step_temp <= 75 && product->mashs.at(i).step_temp >= 60) {		// Ignore mashout and low temperatures.
 		double timem = product->mashs.at(i).step_time;
 		if (i > 0)
 		    timem += product->mashs.at(i).ramp_time;
@@ -222,7 +222,6 @@
 		mashtemp += timem * product->mashs.at(i).step_temp;
 	    }
 	}
-	mashtime += 5;	// Correction for missing last ramp_time.
 	mashtemp = mashtemp / mashtime;
 	mvol = mashinfuse;
 	qDebug() << "  mash time" << mashtime << "temp" << mashtemp << "infuse" << mashinfuse;

mercurial