mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-03 09:28:44 +03:00
Update Resonance Avoidance
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -456,6 +456,9 @@ private:
|
||||
// Processor
|
||||
GCodeProcessor m_processor;
|
||||
|
||||
//Y27
|
||||
bool m_resonance_avoidance;
|
||||
|
||||
// Back-pointer to Print (const).
|
||||
const Print* m_print;
|
||||
std::string _extrude(
|
||||
|
||||
@@ -466,39 +466,42 @@ static std::vector<std::string> s_Preset_print_options {
|
||||
"wipe_tower_width", "wipe_tower_cone_angle", "wipe_tower_rotation_angle", "wipe_tower_brim_width", "wipe_tower_bridging", "single_extruder_multi_material_priming", "mmu_segmented_region_max_width",
|
||||
"mmu_segmented_region_interlocking_depth", "wipe_tower_extruder", "wipe_tower_no_sparse_layers", "wipe_tower_extra_flow", "wipe_tower_extra_spacing", "compatible_printers", "compatible_printers_condition", "inherits",
|
||||
"perimeter_generator", "wall_transition_length", "wall_transition_filter_deviation", "wall_transition_angle",
|
||||
"wall_distribution_count", "min_feature_size", "min_bead_width"
|
||||
"wall_distribution_count", "min_feature_size", "min_bead_width",
|
||||
//B36
|
||||
,"first_layer_travel_speed"
|
||||
"first_layer_travel_speed",
|
||||
//B37
|
||||
,"first_layer_infill_speed"
|
||||
"first_layer_infill_speed",
|
||||
//w11
|
||||
,"detect_narrow_internal_solid_infill"
|
||||
"detect_narrow_internal_solid_infill",
|
||||
//Y21
|
||||
,"seam_gap"
|
||||
"seam_gap",
|
||||
//w16
|
||||
, "top_one_wall_type"
|
||||
"top_one_wall_type",
|
||||
//w17
|
||||
,"top_area_threshold"
|
||||
"top_area_threshold",
|
||||
//w21
|
||||
,"filter_top_gap_infill"
|
||||
"filter_top_gap_infill",
|
||||
//w23
|
||||
,"only_one_wall_first_layer"
|
||||
"only_one_wall_first_layer",
|
||||
//w25
|
||||
,"slow_down_layers"
|
||||
"slow_down_layers",
|
||||
//w26
|
||||
,"elefant_foot_compensation_layers"
|
||||
"elefant_foot_compensation_layers",
|
||||
//w27
|
||||
,"precise_z_height"
|
||||
"precise_z_height",
|
||||
//w28
|
||||
,"max_bridge_length"
|
||||
"max_bridge_length",
|
||||
//w30
|
||||
,"top_solid_infill_flow_ratio", "bottom_solid_infill_flow_ratio"
|
||||
"top_solid_infill_flow_ratio", "bottom_solid_infill_flow_ratio",
|
||||
//w33
|
||||
,"ironing_pattern"
|
||||
"ironing_pattern",
|
||||
//w38
|
||||
,"overhang_reverse","overhang_reverse_internal_only","overhang_reverse_threshold"
|
||||
"overhang_reverse", "overhang_reverse_internal_only", "overhang_reverse_threshold",
|
||||
//w39
|
||||
,"precise_outer_wall"};
|
||||
"precise_outer_wall",
|
||||
//Y27
|
||||
"resonance_avoidance", "min_resonance_avoidance_speed", "max_resonance_avoidance_speed"
|
||||
};
|
||||
|
||||
static std::vector<std::string> s_Preset_filament_options {
|
||||
"filament_colour", "filament_diameter", "filament_type", "filament_soluble", "filament_notes", "filament_max_volumetric_speed",
|
||||
@@ -567,8 +570,6 @@ static std::vector<std::string> s_Preset_printer_options {
|
||||
"bed_exclude_area",
|
||||
//Y25
|
||||
"wipe_device",
|
||||
//Y27
|
||||
"resonance_avoidance", "min_resonance_avoidance_speed", "max_resonance_avoidance_speed",
|
||||
//Y16
|
||||
"chamber_temperature", "auxiliary_fan", "chamber_fan"
|
||||
};
|
||||
|
||||
@@ -228,10 +228,6 @@ bool Print::invalidate_state_by_config_options(const ConfigOptionResolver & /* n
|
||||
|| opt_key == "single_extruder_multi_material"
|
||||
//Y25
|
||||
|| opt_key == "wipe_device"
|
||||
//Y27
|
||||
|| opt_key == "resonance_avoidance"
|
||||
|| opt_key == "min_resonance_avoidance_speed"
|
||||
|| opt_key == "max_resonance_avoidance_speed"
|
||||
|| opt_key == "temperature"
|
||||
|| opt_key == "idle_temperature"
|
||||
|| opt_key == "wipe_tower"
|
||||
|
||||
@@ -702,6 +702,30 @@ void PrintConfigDef::init_fff_params()
|
||||
def->mode = comExpert;
|
||||
def->set_default_value(new ConfigOptionBools{false});
|
||||
|
||||
//Y27
|
||||
def = this->add("resonance_avoidance", coBool);
|
||||
def->label = L("Resonance avoidance");
|
||||
def->tooltip = L("By reducing the speed of the outer wall to avoid the resonance zone of the printer, ringing on the surface of the model are avoided.\n"
|
||||
"Please turn this option off when testing ringing.");
|
||||
def->mode = comExpert;
|
||||
def->set_default_value(new ConfigOptionBool(true));
|
||||
|
||||
def = this->add("min_resonance_avoidance_speed", coFloat);
|
||||
def->label = L("Min");
|
||||
def->tooltip = L("Minimum speed of resonance avoidance.");
|
||||
def->sidetext = L("mm/s");
|
||||
def->min = 0;
|
||||
def->mode = comExpert;
|
||||
def->set_default_value(new ConfigOptionFloat(70));
|
||||
|
||||
def = this->add("max_resonance_avoidance_speed", coFloat);
|
||||
def->label = L("Max");
|
||||
def->tooltip = L("Maximum speed of resonance avoidance.");
|
||||
def->sidetext = L("mm/s");
|
||||
def->min = 0;
|
||||
def->mode = comExpert;
|
||||
def->set_default_value(new ConfigOptionFloat(120));
|
||||
|
||||
// TRN FilamentSettings : "Dynamic fan speeds"
|
||||
auto fan_speed_setting_description = L("Overhang size is expressed as a percentage of overlap of the extrusion with the previous layer: "
|
||||
"100% would be full overlap (no overhang), while 0% represents full overhang (floating extrusion, bridge). "
|
||||
@@ -3007,30 +3031,6 @@ void PrintConfigDef::init_fff_params()
|
||||
def->mode = comExpert;
|
||||
def->set_default_value(new ConfigOptionBool(false));
|
||||
|
||||
//Y27
|
||||
def = this->add("resonance_avoidance", coBool);
|
||||
def->label = L("Resonance avoidance");
|
||||
def->tooltip = L("By reducing the speed of the outer wall to avoid the resonance zone of the printer, ringing on the surface of the model are avoided. "
|
||||
"Turn this option off when testing ringing.");
|
||||
def->mode = comExpert;
|
||||
def->set_default_value(new ConfigOptionBool(true));
|
||||
|
||||
def = this->add("min_resonance_avoidance_speed", coFloat);
|
||||
def->label = L("Min");
|
||||
def->tooltip = L("Minimum speed of resonance avoidance.");
|
||||
def->sidetext = L("mm/s");
|
||||
def->min = 0;
|
||||
def->mode = comExpert;
|
||||
def->set_default_value(new ConfigOptionFloat(70));
|
||||
|
||||
def = this->add("max_resonance_avoidance_speed", coFloat);
|
||||
def->label = L("Max");
|
||||
def->tooltip = L("Maximum speed of resonance avoidance.");
|
||||
def->sidetext = L("mm/s");
|
||||
def->min = 0;
|
||||
def->mode = comExpert;
|
||||
def->set_default_value(new ConfigOptionFloat(115));
|
||||
|
||||
def = this->add("single_extruder_multi_material_priming", coBool);
|
||||
def->label = L("Prime all printing extruders");
|
||||
def->tooltip = L("If enabled, all printing extruders will be primed at the front edge of the print bed at the start of the print.");
|
||||
|
||||
@@ -626,6 +626,10 @@ PRINT_CONFIG_CLASS_DEFINE(
|
||||
((ConfigOptionFloatOrPercent, overhang_speed_1))
|
||||
((ConfigOptionFloatOrPercent, overhang_speed_2))
|
||||
((ConfigOptionFloatOrPercent, overhang_speed_3))
|
||||
//Y27
|
||||
((ConfigOptionBool, resonance_avoidance))
|
||||
((ConfigOptionFloat, min_resonance_avoidance_speed))
|
||||
((ConfigOptionFloat, max_resonance_avoidance_speed))
|
||||
((ConfigOptionBool, external_perimeters_first))
|
||||
((ConfigOptionBool, extra_perimeters))
|
||||
((ConfigOptionBool, extra_perimeters_on_overhangs))
|
||||
@@ -785,10 +789,6 @@ PRINT_CONFIG_CLASS_DEFINE(
|
||||
((ConfigOptionBool, single_extruder_multi_material))
|
||||
//Y25
|
||||
((ConfigOptionBool, wipe_device))
|
||||
//Y27
|
||||
((ConfigOptionBool, resonance_avoidance))
|
||||
((ConfigOptionFloat, min_resonance_avoidance_speed))
|
||||
((ConfigOptionFloat, max_resonance_avoidance_speed))
|
||||
((ConfigOptionBool, single_extruder_multi_material_priming))
|
||||
((ConfigOptionBool, wipe_tower_no_sparse_layers))
|
||||
((ConfigOptionString, toolchange_gcode))
|
||||
|
||||
Reference in New Issue
Block a user