mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-02 00:48:43 +03:00
Add filament option ——Seal
This commit is contained in:
@@ -799,8 +799,12 @@ std::string CoolingBuffer::apply_layer_cooldown(
|
||||
auto change_extruder_set_fan = [this, layer_id, layer_time, &new_gcode, &bridge_fan_control, &bridge_fan_speed]() {
|
||||
#define EXTRUDER_CONFIG(OPT) m_config.OPT.get_at(m_current_extruder)
|
||||
int min_fan_speed = EXTRUDER_CONFIG(min_fan_speed);
|
||||
//B15
|
||||
int enable_auxiliary_fan = EXTRUDER_CONFIG(enable_auxiliary_fan);
|
||||
//B15//Y26
|
||||
int enable_auxiliary_fan;
|
||||
if (m_config.opt_bool("seal_print"))
|
||||
enable_auxiliary_fan = EXTRUDER_CONFIG(enable_auxiliary_fan);
|
||||
else
|
||||
enable_auxiliary_fan = EXTRUDER_CONFIG(enable_auxiliary_fan_unseal);
|
||||
//B25
|
||||
int enable_volume_fan = EXTRUDER_CONFIG(enable_volume_fan);
|
||||
int fan_speed_new = EXTRUDER_CONFIG(fan_always_on) ? min_fan_speed : 0;
|
||||
|
||||
@@ -518,6 +518,8 @@ static std::vector<std::string> s_Preset_filament_options {
|
||||
"filament_vendor", "compatible_prints", "compatible_prints_condition", "compatible_printers", "compatible_printers_condition", "inherits",
|
||||
//B15
|
||||
"enable_auxiliary_fan",
|
||||
//Y26
|
||||
"enable_auxiliary_fan_unseal",
|
||||
//B24
|
||||
"volume_temperature",
|
||||
//B25
|
||||
@@ -532,6 +534,8 @@ static std::vector<std::string> s_Preset_filament_options {
|
||||
"disable_rapid_cooling_fan_first_layers",
|
||||
//Y23
|
||||
"filament_shrink",
|
||||
//Y26
|
||||
"seal_print",
|
||||
//w15
|
||||
"filament_wipe_distance"
|
||||
};
|
||||
|
||||
@@ -529,6 +529,13 @@ void PrintConfigDef::init_fff_params()
|
||||
def->max = 65;
|
||||
def->set_default_value(new ConfigOptionInts { 0 });
|
||||
|
||||
//Y26
|
||||
def = this->add("seal_print", coBool);
|
||||
def->label = L("Seal");
|
||||
def->tooltip = L("Sealing box printing will be more stable and reliable, but the heat dissipation of the model will be poor. "
|
||||
"Determine whether to unpack and print according to the actual situation.");
|
||||
def->set_default_value(new ConfigOptionBool(true));
|
||||
|
||||
def = this->add("before_layer_gcode", coString);
|
||||
def->label = L("Before layer change G-code");
|
||||
def->tooltip = L("This custom code is inserted at every layer change, right before the Z move. "
|
||||
@@ -2199,15 +2206,24 @@ void PrintConfigDef::init_fff_params()
|
||||
def->mode = comExpert;
|
||||
def->set_default_value(new ConfigOptionBool(false));
|
||||
|
||||
//B15
|
||||
//B15//Y26
|
||||
def = this->add("enable_auxiliary_fan", coInts);
|
||||
def->label = L("Rapid Cooling Fan Speed");
|
||||
def->tooltip = L("This setting represents the PWM your rapid cooling fan needs to work.");
|
||||
def->label = L("Seal");
|
||||
def->tooltip = L("This setting represents the PWM your rapid cooling fan needs to work when the printing is sealing.");
|
||||
def->sidetext = L("%");
|
||||
def->min = 0;
|
||||
def->max = 100;
|
||||
def->mode = comExpert;
|
||||
def->set_default_value(new ConfigOptionInts { 35 });
|
||||
def->set_default_value(new ConfigOptionInts { 100 });
|
||||
|
||||
def = this->add("enable_auxiliary_fan_unseal", coInts);
|
||||
def->label = L("Unseal");
|
||||
def->tooltip = L("This setting represents the PWM your rapid cooling fan needs to work when the printing is unsealing.");
|
||||
def->sidetext = L("%");
|
||||
def->min = 0;
|
||||
def->max = 100;
|
||||
def->mode = comExpert;
|
||||
def->set_default_value(new ConfigOptionInts { 0 });
|
||||
|
||||
//B25
|
||||
def = this->add("enable_volume_fan", coInts);
|
||||
|
||||
@@ -837,6 +837,8 @@ PRINT_CONFIG_CLASS_DERIVED_DEFINE(
|
||||
((ConfigOptionBool, chamber_temperature))
|
||||
//B24
|
||||
((ConfigOptionInts, volume_temperature))
|
||||
//Y26
|
||||
((ConfigOptionBool, seal_print))
|
||||
((ConfigOptionFloat, bridge_acceleration))
|
||||
((ConfigOptionInts, bridge_fan_speed))
|
||||
((ConfigOptionBools, enable_dynamic_fan_speeds))
|
||||
@@ -854,6 +856,8 @@ PRINT_CONFIG_CLASS_DERIVED_DEFINE(
|
||||
((ConfigOptionInts, enable_volume_fan))
|
||||
//B15
|
||||
((ConfigOptionInts, enable_auxiliary_fan))
|
||||
//Y26
|
||||
((ConfigOptionInts, enable_auxiliary_fan_unseal))
|
||||
((ConfigOptionFloat, default_acceleration))
|
||||
((ConfigOptionInts, disable_fan_first_layers))
|
||||
//B39
|
||||
|
||||
Reference in New Issue
Block a user