mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-02 00:48:43 +03:00
Update Resonance Avoidance
This commit is contained in:
@@ -253,6 +253,11 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig* config)
|
||||
toggle_field("overhang_speed_" + std::to_string(i), config->opt_bool("enable_dynamic_overhang_speeds"));
|
||||
}
|
||||
|
||||
//Y27
|
||||
bool resonance_avoidance = config->opt_bool("resonance_avoidance");
|
||||
toggle_field("min_resonance_avoidance_speed", resonance_avoidance);
|
||||
toggle_field("max_resonance_avoidance_speed", resonance_avoidance);
|
||||
|
||||
bool have_infill = config->option<ConfigOptionPercent>("fill_density")->value > 0;
|
||||
// infill_extruder uses the same logic as in Print::extruders()
|
||||
for (auto el : { "fill_pattern", "infill_every_layers", "infill_only_where_needed",
|
||||
|
||||
@@ -1625,6 +1625,14 @@ void TabPrint::build()
|
||||
optgroup->append_single_option_line("overhang_speed_2");
|
||||
optgroup->append_single_option_line("overhang_speed_3");
|
||||
|
||||
//Y27
|
||||
optgroup = page->new_optgroup(L("Resonance Avoidance"));
|
||||
optgroup->append_single_option_line("resonance_avoidance");
|
||||
line = { L("Resonance Avoidance Speed"), "" };
|
||||
line.append_option(optgroup->get_option("min_resonance_avoidance_speed"));
|
||||
line.append_option(optgroup->get_option("max_resonance_avoidance_speed"));
|
||||
optgroup->append_line(line);
|
||||
|
||||
optgroup = page->new_optgroup(L("Speed for non-print moves"));
|
||||
optgroup->append_single_option_line("travel_speed");
|
||||
optgroup->append_single_option_line("travel_speed_z");
|
||||
@@ -2738,12 +2746,6 @@ void TabPrinter::build_fff()
|
||||
Option option(def, "extruders_count");
|
||||
optgroup->append_single_option_line(option);
|
||||
optgroup->append_single_option_line("single_extruder_multi_material");
|
||||
//Y27
|
||||
optgroup->append_single_option_line("resonance_avoidance");
|
||||
Line line = { L("Resonance Avoidance Speed"), "" };
|
||||
line.append_option(optgroup->get_option("min_resonance_avoidance_speed"));
|
||||
line.append_option(optgroup->get_option("max_resonance_avoidance_speed"));
|
||||
optgroup->append_line(line);
|
||||
|
||||
optgroup->m_on_change = [this, optgroup_wk = ConfigOptionsGroupWkp(optgroup)](t_config_option_key opt_key, boost::any value) {
|
||||
auto optgroup_sh = optgroup_wk.lock();
|
||||
@@ -3615,10 +3617,6 @@ void TabPrinter::toggle_options()
|
||||
toggle_option("toolchange_gcode", have_multiple_extruders);
|
||||
if (m_active_page->title() == "General") {
|
||||
toggle_option("single_extruder_multi_material", have_multiple_extruders);
|
||||
//Y27
|
||||
bool resonance_avoidance = m_config->opt_bool("resonance_avoidance");
|
||||
toggle_option("min_resonance_avoidance_speed", resonance_avoidance);
|
||||
toggle_option("max_resonance_avoidance_speed", resonance_avoidance);
|
||||
|
||||
bool is_marlin_flavor = flavor == gcfMarlinLegacy || flavor == gcfMarlinFirmware;
|
||||
// Disable silent mode for non-marlin firmwares.
|
||||
|
||||
Reference in New Issue
Block a user