Wipe retraction adjusted based on available wipe distance and retraction speed

This commit is contained in:
igiannakas 2023-12-12 08:38:41 +00:00
parent 057926f957
commit e8a4c4aac1
3 changed files with 39 additions and 1 deletions

View file

@ -682,6 +682,15 @@ std::string GCodeWriter::extrude_to_xyz(const Vec3d &point, double dE, const std
return w.string();
}
std::string GCodeWriter::retract(double retraction_length, bool toolchange)
{
return this->_retract(
retraction_length,
toolchange ? m_extruder->retract_restart_extra(): m_extruder->retract_restart_extra_toolchange(),
"retract"
);
}
std::string GCodeWriter::retract(bool before_wipe)
{
double factor = before_wipe ? m_extruder->retract_before_wipe() : 1.;