SPE-2604: Switch off filament monitoring during ramming (wipe tower) also for XL.

This commit is contained in:
Lukáš Hejl 2024-12-09 10:19:39 +01:00 committed by Lukas Matena
parent 2611093355
commit c4a7134eb6
2 changed files with 5 additions and 3 deletions

View File

@ -587,6 +587,7 @@ WipeTower::WipeTower(const Vec2f& pos, double rotation_deg, const PrintConfig& c
}
m_is_mk4mmu3 = boost::icontains(config.printer_notes.value, "PRINTER_MODEL_MK4") && boost::icontains(config.printer_notes.value, "MMU");
m_switch_filament_monitoring = m_is_mk4mmu3 || is_XL_printer(config);
// Calculate where the priming lines should be - very naive test not detecting parallelograms etc.
const std::vector<Vec2d>& bed_points = config.bed_shape.values;
@ -935,7 +936,7 @@ void WipeTower::toolchange_Unload(
}
}
if (m_is_mk4mmu3) {
if (m_switch_filament_monitoring) {
writer.switch_filament_monitoring(false);
writer.wait(1.5f);
}
@ -1084,7 +1085,7 @@ void WipeTower::toolchange_Change(
//writer.append("[end_filament_gcode]\n");
writer.append("[toolchange_gcode_from_wipe_tower_generator]\n");
if (m_is_mk4mmu3)
if (m_switch_filament_monitoring)
writer.switch_filament_monitoring(true);
// Travel to where we assume we are. Custom toolchange or some special T code handling (parking extruder etc)

View File

@ -277,6 +277,7 @@ private:
bool m_semm = true; // Are we using a single extruder multimaterial printer?
bool m_is_mk4mmu3 = false;
bool m_switch_filament_monitoring = false;
Vec2f m_wipe_tower_pos; // Left front corner of the wipe tower in mm.
float m_wipe_tower_width; // Width of the wipe tower.
float m_wipe_tower_depth = 0.f; // Depth of the wipe tower