Heightmap load regression
-
@gnydick, we think there is a rounding error happening somewhere. That height map has an X range of 260 and X spacing of 17.33, so there should be (260/17.33+1) probe points per row, which is 16.002 so 16. But there are only 15 point in each row.
How did you generate that height map?
-
@dc42 the usual way. clicked it from the drop down
-
@fcwilt happy to have a side conversation about it. But here's a link to the old thread
https://forum.duet3d.com/topic/8293/duet-web-control-2-0-0-rc3-is-ready/115?_=1614147801425 -
@gnydick, please provide the M557 command that you used when you used the drop down to probe the bed and create the height map.
-
@dc42
M557 X0:260 Y0:300 P16:16 ; mesh def -
@dc42 still happening
M557 Grid: X0.0:260.0, Y0.0:290.0, radius -1.0, X spacing 17.3, Y spacing 19.3, 225 points
RepRapFirmware height map file v2 generated at 2021-03-06 12:26, min error -0.234, max error 0.100, mean -0.098, deviation 0.048 xmin,xmax,ymin,ymax,radius,xspacing,yspacing,xnum,ynum 0.00,260.00,0.00,290.00,-1.00,17.33,19.33,15,15 -0.006, -0.010, -0.048, -0.073, -0.082, -0.113, -0.142, -0.135, -0.129, -0.070, -0.064, -0.062, -0.054, 0.018, 0.100 -0.066, -0.052, -0.058, -0.069, -0.071, -0.096, -0.156, -0.159, -0.138, -0.081, -0.061, -0.066, -0.121, -0.086, -0.055 -0.178, -0.102, -0.086, -0.085, -0.073, -0.076, -0.082, -0.115, -0.094, -0.091, -0.054, -0.052, -0.050, -0.054, -0.043 -0.140, -0.119, -0.162, -0.136, -0.120, -0.066, -0.079, -0.069, -0.075, -0.060, -0.047, -0.051, -0.057, -0.066, -0.047 -0.140, -0.148, -0.095, -0.135, -0.129, -0.111, -0.107, -0.093, -0.065, -0.084, -0.071, -0.039, -0.024, -0.039, -0.046 -0.068, -0.110, -0.136, -0.138, -0.156, -0.123, -0.128, -0.141, -0.109, -0.100, -0.078, -0.033, 0.026, -0.038, -0.035 -0.079, -0.079, -0.105, -0.121, -0.134, -0.133, -0.155, -0.168, -0.134, -0.151, -0.127, -0.084, 0.024, 0.014, -0.049 -0.056, -0.065, -0.085, -0.104, -0.131, -0.153, -0.159, -0.178, -0.172, -0.154, -0.155, -0.141, -0.084, -0.081, -0.052 -0.021, -0.061, -0.093, -0.112, -0.122, -0.149, -0.158, -0.169, -0.189, -0.185, -0.198, -0.178, -0.123, -0.084, -0.047 -0.058, -0.060, -0.096, -0.106, -0.108, -0.140, -0.164, -0.176, -0.166, -0.180, -0.174, -0.179, -0.144, -0.105, -0.069 -0.034, -0.074, -0.055, -0.071, -0.102, -0.135, -0.136, -0.158, -0.114, -0.147, -0.163, -0.153, -0.163, -0.148, -0.126 -0.017, -0.051, -0.070, -0.096, -0.104, -0.123, -0.140, -0.139, -0.151, -0.145, -0.147, -0.121, -0.142, -0.113, -0.110 -0.234, -0.046, -0.050, -0.086, -0.072, -0.117, -0.127, -0.122, -0.118, -0.112, -0.134, -0.142, -0.141, -0.144, -0.129 -0.023, -0.019, -0.019, -0.052, -0.061, -0.084, -0.083, -0.108, -0.086, -0.094, -0.111, -0.078, -0.100, -0.069, -0.072 -0.031, -0.044, -0.015, -0.071, -0.051, -0.073, -0.087, -0.108, -0.074, -0.104, -0.117, -0.111, -0.121, -0.113, -0.083
-
Thanks for the reminder. Will take another look.
-
I'll shamelessly plug in here. Is it possible the problem I am seeing is somehow related to this?
https://forum.duet3d.com/topic/21963/rrf-3-2-2-can-t-figure-out-the-offset-between-z0-and-mesh -
@gnydick, I'm sorry, I forgot to update you with what we found. The X range in your height map is from 0 to 260 and the spacing is listed as 17.33 so in theory there should be (260-0)/17.33+1 = 16 entries per row of the height map. Also, you asked for 16 points in your M557 command. However, the height map has only 15 entries per row, due to rounding error when the grid was calculated.
We have fixed the height map loading issue in the 3.3beta source code. Meanwhile, I think it will work if you change your M557 command to this:
M557 X0:260 Y0:300 S17.33:19.33
and then generate a new height map.
-
@dc42 thanks