Disabled a limit of the nozzle diameter 0.4mm for the Prusa Wipe Tower.

Allowed scaling of the extrusion amount over the Prusa Wipe Tower
for layer heights over 0.2mm.
This commit is contained in:
bubnikv 2017-08-28 14:57:00 +02:00
parent 61b89865ff
commit 48f826c2c5
2 changed files with 6 additions and 2 deletions

View File

@ -94,8 +94,10 @@ public:
m_current_shape = (! is_first_layer && m_current_shape == SHAPE_NORMAL) ? SHAPE_REVERSED : SHAPE_NORMAL;
++ m_num_layer_changes;
// Extrusion rate for an extrusion aka perimeter width 0.35mm.
m_extrusion_flow = std::min(0.2f, layer_height) * 0.145f;
int layer_idx = int(std::floor(layer_height * 1000) + 0.5f);
// Clamp the extrusion height to a 0.2mm layer height, independent of the nozzle diameter.
// m_extrusion_flow = std::min(0.2f, layer_height) * 0.145f;
// Use a strictly
m_extrusion_flow = layer_height * 0.145f;
}
// Return the wipe tower position.

View File

@ -558,9 +558,11 @@ std::string Print::validate() const
}
if (this->has_wipe_tower() && ! this->objects.empty()) {
#if 0
for (auto dmr : this->config.nozzle_diameter.values)
if (std::abs(dmr - 0.4) > EPSILON)
return "The Wipe Tower is currently only supported for the 0.4mm nozzle diameter.";
#endif
if (this->config.gcode_flavor != gcfRepRap)
return "The Wipe Tower is currently only supported for the RepRap (Marlin / Sprinter) G-code flavor.";
if (! this->config.use_relative_e_distances)