src/EditProductTab3.cpp

changeset 390
2a69be28a925
parent 369
09d3d8d18f97
child 396
c9a1d85c1487
equal deleted inserted replaced
389:a98d45793808 390:2a69be28a925
212 */ 212 */
213 if (product->mashs.size() > 0) { 213 if (product->mashs.size() > 0) {
214 for (i = 0; i < product->mashs.size(); i++) { 214 for (i = 0; i < product->mashs.size(); i++) {
215 if (product->mashs.at(i).step_type == 0) // Infusion 215 if (product->mashs.at(i).step_type == 0) // Infusion
216 mashinfuse += product->mashs.at(i).step_infuse_amount; 216 mashinfuse += product->mashs.at(i).step_infuse_amount;
217 if (product->mashs.at(i).step_temp < 75) { // Ignore mashout 217 if (product->mashs.at(i).step_temp <= 75 && product->mashs.at(i).step_temp >= 60) { // Ignore mashout and low temperatures.
218 double timem = product->mashs.at(i).step_time; 218 double timem = product->mashs.at(i).step_time;
219 if (i > 0) 219 if (i > 0)
220 timem += product->mashs.at(i).ramp_time; 220 timem += product->mashs.at(i).ramp_time;
221 mashtime += timem; 221 mashtime += timem;
222 mashtemp += timem * product->mashs.at(i).step_temp; 222 mashtemp += timem * product->mashs.at(i).step_temp;
223 } 223 }
224 } 224 }
225 mashtime += 5; // Correction for missing last ramp_time.
226 mashtemp = mashtemp / mashtime; 225 mashtemp = mashtemp / mashtime;
227 mvol = mashinfuse; 226 mvol = mashinfuse;
228 qDebug() << " mash time" << mashtime << "temp" << mashtemp << "infuse" << mashinfuse; 227 qDebug() << " mash time" << mashtime << "temp" << mashtemp << "infuse" << mashinfuse;
229 } else { 228 } else {
230 qDebug() << " no mash schedule"; 229 qDebug() << " no mash schedule";

mercurial