Skip to content

Commit

Permalink
Improve PA calibration Line method so it works for bed origin not in …
Browse files Browse the repository at this point in the history
…(0,0)

(cherry picked from commit f052206)
  • Loading branch information
SoftFever committed Dec 2, 2023
1 parent cd1be11 commit bfd8ac6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/libslic3r/calib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,11 +439,8 @@ std::string CalibPressureAdvanceLine::generate_test(double start_pa /*= 0*/, dou

m_length_long = 40 + std::min(w - 120.0, 0.0);

auto startx = (w - m_length_short * 2 - m_length_long - 20) / 2;
auto starty = (h - count * m_space_y) / 2;
if (is_delta()) {
CalibPressureAdvanceLine::delta_modify_start(startx, starty, count);
}
auto startx = bed_ext.min.x() + (w - m_length_short * 2 - m_length_long - 20) / 2;
auto starty = bed_ext.min.y() + (h - count * m_space_y) / 2;

return print_pa_lines(startx, starty, start_pa, step_pa, count);
}
Expand Down

0 comments on commit bfd8ac6

Please sign in to comment.