Adaptive Mesh: Did I find an error?

I have 2 longer objects on the bed and as soon as the mesh would get created, Klipper runs into error.
bed_mesh: invalid probe_count option when using bicubic interpolation. Combination of 3 points on one axis with more than 6 on another is not permitted. Configured Probe Count: 3, 7
bed_mesh: invalid probe_count option when using bicubic interpolation. Combination of 3 points on one axis with more than 6 on another is not permitted. Configured Probe Count: 3, 7
How to fix this behavior?
No description
15 Replies
miklschmidt
miklschmidtβ€’14mo ago
Yep i think you did find a bug. Please give this a shot (throw it in user overrides):
miklschmidt
miklschmidtβ€’14mo ago
Original macro seems to be missing:
{% set mesh_count_x = ([min_mesh_count, mesh_count_x]|max)|int %}
{% set mesh_count_x = ([max_mesh_count, mesh_count_x]|min)|int %}
{% set mesh_count_y = ([min_mesh_count, mesh_count_y]|max)|int %}
{% set mesh_count_y = ([max_mesh_count, mesh_count_y]|min)|int %}
{% set mesh_count_x = ([min_mesh_count, mesh_count_x]|max)|int %}
{% set mesh_count_x = ([max_mesh_count, mesh_count_x]|min)|int %}
{% set mesh_count_y = ([min_mesh_count, mesh_count_y]|max)|int %}
{% set mesh_count_y = ([max_mesh_count, mesh_count_y]|min)|int %}
after the algorithm checks, so i added those.
Rigattoni
Rigattoniβ€’14mo ago
Okay, will try it later. Just now I "repaired" this issue by adding something else at the side... and excluded it from printing after the print started. Need to wait now for finishing this print.
Helge Keck
Helge Keckβ€’14mo ago
i think this is wrong this would change a 3x6 mesh into a 6x6 mesh or am i seeing it wrong
miklschmidt
miklschmidtβ€’14mo ago
it would limit x/y probe counts between min and max mesh count.
Helge Keck
Helge Keckβ€’14mo ago
yes, original PAM did it a bit different
No description
Helge Keck
Helge Keckβ€’14mo ago
howeveer, if it works it works
miklschmidt
miklschmidtβ€’14mo ago
that's essentially exactly the same
Helge Keck
Helge Keckβ€’14mo ago
no idea how i missed that
miklschmidt
miklschmidtβ€’14mo ago
I think i actually pointed it out and then forgot about it again πŸ˜‚
Technofrikus
Technofrikusβ€’14mo ago
Thanks for reporting, had the same issue but didnt find the time to report it yet. I just turned the part 45 degrees
Rigattoni
Rigattoniβ€’14mo ago
The changed macro works as expected. Thanks for your fast support.
miklschmidt
miklschmidtβ€’14mo ago
I'll push it πŸ‘ I've pushed the change let me know if that solves it for you πŸ™‚
Technofrikus
Technofrikusβ€’14mo ago
Yes, works now πŸ™‚ thanks! Sorry, took some time to find the time to test again.