SLA estimation time:

* A calculation of the estimation of a print time is ported from the FW
  (See https://gitlab.com/prusa3d/sl1/sla-fw/-/blob/1.7/slafw/project/project.py#L485)
* Some missed parameters are added to the Printer Presets
This commit is contained in:
YuSanka 2022-03-28 08:58:44 +02:00 committed by Lukas Matena
parent d8877973e3
commit 906f8914a6
7 changed files with 48 additions and 8 deletions
src/libslic3r

View file

@ -168,8 +168,9 @@ static const t_config_enum_values s_keys_map_SLAPillarConnectionMode = {
CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(SLAPillarConnectionMode)
static const t_config_enum_values s_keys_map_SLAMaterialSpeed = {
{"slow", slamsSlow},
{"fast", slamsFast}
{"slow", slamsSlow},
{"fast", slamsFast},
{"high_viscosity", slamsHighViscosity}
};
CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(SLAMaterialSpeed);
@ -3285,6 +3286,15 @@ void PrintConfigDef::init_sla_params()
def->mode = comExpert;
def->set_default_value(new ConfigOptionFloat(8.));
def = this->add("high_viscosity_tilt_time", coFloat);
def->label = L("High viscosity");
def->full_label = L("High viscosity tilt");
def->tooltip = L("Time of the super slow tilt");
def->sidetext = L("s");
def->min = 0;
def->mode = comExpert;
def->set_default_value(new ConfigOptionFloat(10.));
def = this->add("area_fill", coFloat);
def->label = L("Area fill");
def->tooltip = L("The percentage of the bed area. \nIf the print area exceeds the specified value, \nthen a slow tilt will be used, otherwise - a fast tilt");
@ -3892,8 +3902,10 @@ void PrintConfigDef::init_sla_params()
def->enum_keys_map = &ConfigOptionEnum<SLAMaterialSpeed>::get_enum_values();
def->enum_values.push_back("slow");
def->enum_values.push_back("fast");
def->enum_values.push_back("high_viscosity");
def->enum_labels.push_back(L("Slow"));
def->enum_labels.push_back(L("Fast"));
def->enum_labels.push_back(L("High Viscosity"));
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionEnum<SLAMaterialSpeed>(slamsFast));
}