Skip to content

Commit

Permalink
Fix Wipe tower starting wipe speed as %
Browse files Browse the repository at this point in the history
  • Loading branch information
supermerill committed May 15, 2024
1 parent 5a884c3 commit 57e2cd1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions resources/ui_layout/default/print.ui
Original file line number Diff line number Diff line change
Expand Up @@ -348,13 +348,14 @@ group:label_width$8:sidetext_width$7:Speed for print moves
setting:width$4:bridge_speed_internal
setting:width$4:overhangs_speed
line:Gap fill speed
setting:width$4:label$maximum speed:gap_fill_speed
setting:width$4:label$Maximum speed:gap_fill_speed
setting:width$4:label$Cap with:sidetext$% of perimeter flow:sidetext_width$20:gap_fill_flow_match_perimeter
line:Other speed
setting:width$4:thin_walls_speed
setting:width$4:ironing_speed
setting:wipe_tower_speed
setting:wipe_tower_wipe_starting_speed
line:Wipe tower
setting:width$4:label$Main speed:wipe_tower_speed
setting:width$4:label$Wipe starting speed:wipe_tower_wipe_starting_speed
group:Speed for non-print moves
line:Travel speed
setting:label$xy:travel_speed
Expand Down
4 changes: 2 additions & 2 deletions src/libslic3r/GCode/WipeTower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1267,8 +1267,8 @@ void WipeTower::toolchange_Wipe(
if (this->m_config->filament_max_speed.get_at(this->m_current_tool) > 0) {
max_speed = float(this->m_config->filament_max_speed.get_at(this->m_current_tool));
}
const float target_speed = std::min(max_speed, (is_first_layer() ? m_first_layer_speed : m_speed) * 60.f);
float wipe_speed = std::min(max_speed, std::min(target_speed, float(m_config->wipe_tower_wipe_starting_speed.get_abs_value(target_speed))));
const float target_speed = std::min(max_speed, (is_first_layer() ? m_first_layer_speed : m_speed));
float wipe_speed = std::min(max_speed, float(m_config->wipe_tower_wipe_starting_speed.get_abs_value(target_speed)));
if (wipe_speed <= 0) {
wipe_speed = target_speed;
}
Expand Down
4 changes: 2 additions & 2 deletions src/libslic3r/PrintConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6251,10 +6251,10 @@ void PrintConfigDef::init_fff_params()
def->set_default_value(new ConfigOptionFloat(80.));

def = this->add("wipe_tower_wipe_starting_speed", coFloatOrPercent);
def->label = L("Wipe tower starting speed");
def->label = L("Wipe tower wipe starting speed");
def->category = OptionCategory::speed;
def->tooltip = L("Start of the wiping speed ramp up (for wipe tower)."
"\nCan be a % of the 'Wipe tower speed'."
"\nCan be a % of the 'Wipe tower main speed'."
"\nSet to 0 to disable.");
def->sidetext = L("mm/s or %");
def->mode = comAdvancedE | comSuSi;
Expand Down

0 comments on commit 57e2cd1

Please sign in to comment.