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 { |