FIX: fix error length for nozzle change

jira: none
Change-Id: I1c9052cadef717888c5f8ff50e0d6e1efce6d73e
(cherry picked from commit d0d5ed2f5ef69b9f5155ec64c7c0a73cfa90483e)
This commit is contained in:
zhimin.zeng
2025-02-14 16:15:17 +08:00
committed by Noisyfox
parent 23a52305dc
commit 5b589b47f1
2 changed files with 19 additions and 18 deletions

View File

@@ -281,6 +281,12 @@ public:
if (layer_height < 0) return m_extrusion_flow;
return layer_height * (m_perimeter_width - layer_height * (1.f - float(M_PI) / 4.f)) / filament_area();
}
float nozzle_change_extrusion_flow(float layer_height = -1.f) const // negative layer_height - return current m_extrusion_flow
{
if (layer_height < 0)
return m_extrusion_flow;
return layer_height * (m_nozzle_change_perimeter_width - layer_height * (1.f - float(M_PI) / 4.f)) / filament_area();
}
bool get_floating_area(float& start_pos_y, float& end_pos_y) const;
bool need_thick_bridge_flow(float pos_y) const;