Add wipe device

This commit is contained in:
QIDI TECH
2024-04-01 15:06:28 +08:00
parent 3039c76417
commit 8c672c53c7
6 changed files with 31 additions and 8 deletions

View File

@@ -542,6 +542,8 @@ static std::vector<std::string> s_Preset_printer_options {
"machine_limits_usage", "thumbnails", "thumbnails_format",
//Y20 //B52
"bed_exclude_area",
//Y25
"wipe_device",
//Y16
"chamber_temperature", "auxiliary_fan", "chamber_fan"
};

View File

@@ -224,6 +224,8 @@ bool Print::invalidate_state_by_config_options(const ConfigOptionResolver & /* n
|| opt_key == "high_current_on_filament_swap"
|| opt_key == "infill_first"
|| opt_key == "single_extruder_multi_material"
//Y25
|| opt_key == "wipe_device"
|| opt_key == "temperature"
|| opt_key == "idle_temperature"
|| opt_key == "wipe_tower"

View File

@@ -2853,6 +2853,12 @@ void PrintConfigDef::init_fff_params()
def->tooltip = L("The printer multiplexes filaments into a single hot end.");
def->mode = comExpert;
def->set_default_value(new ConfigOptionBool(false));
//Y25
def = this->add("wipe_device", coBool);
def->label = L("Wipe Device");
def->tooltip = L("Enable wipe device.");
def->mode = comExpert;
def->set_default_value(new ConfigOptionBool(false));
def = this->add("single_extruder_multi_material_priming", coBool);
def->label = L("Prime all printing extruders");
@@ -3436,6 +3442,7 @@ void PrintConfigDef::init_fff_params()
def->tooltip = "";
def->set_default_value(new ConfigOptionBool{ false });
def = this->add("wipe_tower_x", coFloat);
def->label = L("Position X");
def->tooltip = L("X coordinate of the left front corner of a wipe tower");
def->sidetext = L("mm");
@@ -3499,6 +3506,7 @@ void PrintConfigDef::init_fff_params()
def->min = 100.;
def->max = 300.;
def->set_default_value(new ConfigOptionPercent(100.));
def = this->add("wipe_into_infill", coBool);
def->category = L("Wipe options");
def->label = L("Wipe into this object's infill");

View File

@@ -762,6 +762,8 @@ PRINT_CONFIG_CLASS_DEFINE(
((ConfigOptionString, start_gcode))
((ConfigOptionStrings, start_filament_gcode))
((ConfigOptionBool, single_extruder_multi_material))
//Y25
((ConfigOptionBool, wipe_device))
((ConfigOptionBool, single_extruder_multi_material_priming))
((ConfigOptionBool, wipe_tower_no_sparse_layers))
((ConfigOptionString, toolchange_gcode))

View File

@@ -2842,6 +2842,7 @@ void TabPrinter::build_fff()
optgroup->append_single_option_line("auxiliary_fan");
optgroup->append_single_option_line("chamber_fan");
optgroup->append_single_option_line("chamber_temperature");
optgroup->append_single_option_line("wipe_device");
const int gcode_field_height = 15; // 150
const int notes_field_height = 25; // 250