Create Height Map from Individually Probed Points?
-
Hi guys,
Is there a way to take some number of individually probes points:
G30 P0 X19 Y-14 Z-99999 G30 P1 X161 Y-14 Z-99999 G30 P2 X90 Y166 Z-99999 S-1
and then write them to a CSV for visualization in the height map plugin?
-
@CCS86
https://docs.duet3d.com/User_manual/Reference/Gcodes#g29-mesh-bed-probe
Check the S4 Parameter -
Unless I am misreading, it sounds like that does the opposite, reading points out of a CSV file; as opposed to taking points and writing a CSV file.
-
You could possibly use conditional gcode and echo the commands into a file.
-
@CCS86
As I read it, you can define your own points to be measured. As far as I remember, this was also the original wish for the firmware adaptation. Probably an example of the exact procedure should be inserted in the documentation. Possibly it is also not yet fully implemented. -
Does this functionality exist, or would I need to manually write code to parse and write individual points to a file?
-
@CCS86 this functionality doesn't exist. I'm not even sure what would be a good algorithm to calculate an appropriate compensation amount at a given point based on a random set of probe points.
-
@CCS86, my understanding is that RRF expects to find a complete grid of points, rather than a scattered set of points.
I think it's possible to covert a random set of points to a complete grid, and maybe there are some math and programming inclined people that can help. For example inter/extrapolating the z(x,y) surface defined by set of scattered points, at regular grid intervals using a python library function like this https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp2d.html
-
That makes sense guys.
I was asking more for the visualization aspect with the DWC plugin, as opposed to using it for mesh leveling.