FIX: Flow Rate Calibration Pattern too crowded with 0.8mm nozzle

github issue 2296

Change-Id: Iee766680c26ab5ca826961f53f8963d802a25397
This commit is contained in:
zhimin.zeng 2023-08-15 14:23:27 +08:00 committed by lane.wei
parent 6a86c9f2a3
commit d3785577ef

View file

@ -378,12 +378,13 @@ void CalibUtils::calib_flowrate(int pass, const CalibInfo& calib_info, std::stri
first_layer_height = std::max(first_layer_height, layer_height);
float zscale = (first_layer_height + 6 * layer_height) / 1.4;
for (auto _obj : model.objects) _obj->scale(1, 1, zscale);
// only enlarge
if (xyScale > 1.2) {
for (auto _obj : model.objects) _obj->scale(xyScale, xyScale, zscale);
} else {
for (auto _obj : model.objects) _obj->scale(1, 1, zscale);
}
//if (xyScale > 1.2) {
// for (auto _obj : model.objects) _obj->scale(xyScale, xyScale, zscale);
//} else {
// for (auto _obj : model.objects) _obj->scale(1, 1, zscale);
//}
Flow infill_flow = Flow(nozzle_diameter * 1.2f, layer_height, nozzle_diameter);
double filament_max_volumetric_speed = filament_config.option<ConfigOptionFloats>("filament_max_volumetric_speed")->get_at(0);