src/EditRecipeTab1.cpp

changeset 397
877420a13815
parent 395
7212b980a527
child 407
c2166b972811
equal deleted inserted replaced
396:c9a1d85c1487 397:877420a13815
38 * Real Extract (RE) 38 * Real Extract (RE)
39 */ 39 */
40 double re = ((0.1808 * ((Utils::sg_to_plato(recipe->st_og_min) + Utils::sg_to_plato(recipe->st_og_max)) / 2)) + 40 double re = ((0.1808 * ((Utils::sg_to_plato(recipe->st_og_min) + Utils::sg_to_plato(recipe->st_og_max)) / 2)) +
41 (0.8192 * ((Utils::sg_to_plato(fg_min) + Utils::sg_to_plato(recipe->st_fg_max)) / 2))); 41 (0.8192 * ((Utils::sg_to_plato(fg_min) + Utils::sg_to_plato(recipe->st_fg_max)) / 2)));
42 42
43 /* BU:RE */ 43 /*
44 * BU:RE
45 * Divide over average RE gives the best ranges.
46 */
44 double bure_min = recipe->st_ibu_min / re; 47 double bure_min = recipe->st_ibu_min / re;
45 double bure_max = recipe->st_ibu_max / re; 48 double bure_max = recipe->st_ibu_max / re;
46 ui->est_bufguShow->setRange(bure_min, bure_max); 49 ui->est_bufguShow->setRange(bure_min, bure_max);
47
48 qDebug() << "BU:RE" << bure_min << bure_max;
49 } 50 }
50 51
51 52
52 void EditRecipe::name_changed(QString name) 53 void EditRecipe::name_changed(QString name)
53 { 54 {
187 adjustHops(factor); 188 adjustHops(factor);
188 adjustMiscs(factor); 189 adjustMiscs(factor);
189 adjustYeasts(factor); 190 adjustYeasts(factor);
190 calcIBUs(); 191 calcIBUs();
191 calcWater(); 192 calcWater();
192 //calcSparge();
193 calcMash(); 193 calcMash();
194 is_changed(); 194 is_changed();
195 emit refreshAll(); 195 emit refreshAll();
196 } 196 }
197 197

mercurial