aboutsummaryrefslogtreecommitdiffstats
path: root/docs/API_Server.md
diff options
context:
space:
mode:
authorEric Callahan <arksine.code@gmail.com>2024-06-11 14:31:39 -0400
committerKevinOConnor <kevin@koconnor.net>2024-06-19 13:47:32 -0400
commita19d64febdbaa7d5ec0a0912bb65c6547c370ec3 (patch)
treef3172e55ed32bfbbeac70cebf4c984096833d9d0 /docs/API_Server.md
parenta19af088945fdd33e49477413b90ee061c716e71 (diff)
downloadkutter-a19d64febdbaa7d5ec0a0912bb65c6547c370ec3.tar.gz
kutter-a19d64febdbaa7d5ec0a0912bb65c6547c370ec3.tar.xz
kutter-a19d64febdbaa7d5ec0a0912bb65c6547c370ec3.zip
docs: add rapid probing documentation
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Diffstat (limited to 'docs/API_Server.md')
-rw-r--r--docs/API_Server.md127
1 files changed, 127 insertions, 0 deletions
diff --git a/docs/API_Server.md b/docs/API_Server.md
index 4af1812a..cc0922e3 100644
--- a/docs/API_Server.md
+++ b/docs/API_Server.md
@@ -401,3 +401,130 @@ might return:
As with the "gcode/script" endpoint, this endpoint only completes
after any pending G-Code commands complete.
+
+### bed_mesh/dump_mesh
+
+Dumps the configuration and state for the current mesh and all
+saved profiles.
+
+For example:
+`{"id": 123, "method": "bed_mesh/dump_mesh"}`
+
+might return:
+
+```
+{
+ "current_mesh": {
+ "name": "eddy-scan-test",
+ "probed_matrix": [...],
+ "mesh_matrix": [...],
+ "mesh_params": {
+ "x_count": 9,
+ "y_count": 9,
+ "mesh_x_pps": 2,
+ "mesh_y_pps": 2,
+ "algo": "bicubic",
+ "tension": 0.5,
+ "min_x": 20,
+ "max_x": 330,
+ "min_y": 30,
+ "max_y": 320
+ }
+ },
+ "profiles": {
+ "default": {
+ "points": [...],
+ "mesh_params": {
+ "min_x": 20,
+ "max_x": 330,
+ "min_y": 30,
+ "max_y": 320,
+ "x_count": 9,
+ "y_count": 9,
+ "mesh_x_pps": 2,
+ "mesh_y_pps": 2,
+ "algo": "bicubic",
+ "tension": 0.5
+ }
+ },
+ "eddy-scan-test": {
+ "points": [...],
+ "mesh_params": {
+ "x_count": 9,
+ "y_count": 9,
+ "mesh_x_pps": 2,
+ "mesh_y_pps": 2,
+ "algo": "bicubic",
+ "tension": 0.5,
+ "min_x": 20,
+ "max_x": 330,
+ "min_y": 30,
+ "max_y": 320
+ }
+ },
+ "eddy-rapid-test": {
+ "points": [...],
+ "mesh_params": {
+ "x_count": 9,
+ "y_count": 9,
+ "mesh_x_pps": 2,
+ "mesh_y_pps": 2,
+ "algo": "bicubic",
+ "tension": 0.5,
+ "min_x": 20,
+ "max_x": 330,
+ "min_y": 30,
+ "max_y": 320
+ }
+ }
+ },
+ "calibration": {
+ "points": [...],
+ "config": {
+ "x_count": 9,
+ "y_count": 9,
+ "mesh_x_pps": 2,
+ "mesh_y_pps": 2,
+ "algo": "bicubic",
+ "tension": 0.5,
+ "mesh_min": [
+ 20,
+ 30
+ ],
+ "mesh_max": [
+ 330,
+ 320
+ ],
+ "origin": null,
+ "radius": null
+ },
+ "probe_path": [...],
+ "rapid_path": [...]
+ },
+ "probe_offsets": [
+ 0,
+ 25,
+ 0.5
+ ],
+ "axis_minimum": [
+ 0,
+ 0,
+ -5,
+ 0
+ ],
+ "axis_maximum": [
+ 351,
+ 358,
+ 330,
+ 0
+ ]
+}
+```
+
+The `dump_mesh` endpoint takes one optional parameter, `mesh_args`.
+This parameter must be an object, where the keys and values are
+parameters available to [BED_MESH_CALIBRATE](#bed_mesh_calibrate).
+This will update the mesh configuration and probe points using the
+supplied parameters prior to returning the result. It is recommended
+to omit mesh parameters unless it is desired to visualize the probe points
+and/or travel path before performing `BED_MESH_CALIBRATE`.