mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-01 04:12:04 +08:00
SPE-2604: Switch off filament monitoring during ramming (wipe tower) also for XL.
This commit is contained in:
parent
2611093355
commit
c4a7134eb6
@ -586,7 +586,8 @@ WipeTower::WipeTower(const Vec2f& pos, double rotation_deg, const PrintConfig& c
|
|||||||
m_set_extruder_trimpot = config.high_current_on_filament_swap;
|
m_set_extruder_trimpot = config.high_current_on_filament_swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_is_mk4mmu3 = boost::icontains(config.printer_notes.value, "PRINTER_MODEL_MK4") && boost::icontains(config.printer_notes.value, "MMU");
|
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.
|
// Calculate where the priming lines should be - very naive test not detecting parallelograms etc.
|
||||||
const std::vector<Vec2d>& bed_points = config.bed_shape.values;
|
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.switch_filament_monitoring(false);
|
||||||
writer.wait(1.5f);
|
writer.wait(1.5f);
|
||||||
}
|
}
|
||||||
@ -1084,7 +1085,7 @@ void WipeTower::toolchange_Change(
|
|||||||
//writer.append("[end_filament_gcode]\n");
|
//writer.append("[end_filament_gcode]\n");
|
||||||
writer.append("[toolchange_gcode_from_wipe_tower_generator]\n");
|
writer.append("[toolchange_gcode_from_wipe_tower_generator]\n");
|
||||||
|
|
||||||
if (m_is_mk4mmu3)
|
if (m_switch_filament_monitoring)
|
||||||
writer.switch_filament_monitoring(true);
|
writer.switch_filament_monitoring(true);
|
||||||
|
|
||||||
// Travel to where we assume we are. Custom toolchange or some special T code handling (parking extruder etc)
|
// Travel to where we assume we are. Custom toolchange or some special T code handling (parking extruder etc)
|
||||||
|
@ -277,6 +277,7 @@ private:
|
|||||||
|
|
||||||
bool m_semm = true; // Are we using a single extruder multimaterial printer?
|
bool m_semm = true; // Are we using a single extruder multimaterial printer?
|
||||||
bool m_is_mk4mmu3 = false;
|
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.
|
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_width; // Width of the wipe tower.
|
||||||
float m_wipe_tower_depth = 0.f; // Depth of the wipe tower
|
float m_wipe_tower_depth = 0.f; // Depth of the wipe tower
|
||||||
|
Loading…
x
Reference in New Issue
Block a user