aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-08-05 11:43:45 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-08-20 21:03:22 -0400
commit4c5e93d51dca2393946a67646499fef5fdd034b0 (patch)
tree5450c95a3aa8fe5554dad97df2adf9b2b05c1a64 /docs
parentcd7c1b8e68d8234524149c62e8ea2ad0bda07d2f (diff)
downloadkutter-4c5e93d51dca2393946a67646499fef5fdd034b0.tar.gz
kutter-4c5e93d51dca2393946a67646499fef5fdd034b0.tar.xz
kutter-4c5e93d51dca2393946a67646499fef5fdd034b0.zip
gcode: Split G0/G1 command handling to new gcode_move class
Split up the main GCodeParser class into GCodeDispatch and GCodeMove classes. The GCodeMove class is now available using the "gcode_move" printer object name. This split simplifies the gcode.py code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'docs')
-rw-r--r--docs/Code_Overview.md6
-rw-r--r--docs/Config_Changes.md5
2 files changed, 8 insertions, 3 deletions
diff --git a/docs/Code_Overview.md b/docs/Code_Overview.md
index c47d783c..73111870 100644
--- a/docs/Code_Overview.md
+++ b/docs/Code_Overview.md
@@ -473,9 +473,9 @@ system specified in the config file. This may differ from the
bed_tilt, skew_correction) is in effect. This may differ from the
actual coordinates specified in the last `G1` command if the g-code
origin has been changed (eg, `G92`, `SET_GCODE_OFFSET`, `M221`). The
-`M114` command (`gcode.get_status()['gcode_position']`) will report
-the last g-code position relative to the current g-code coordinate
-system.
+`M114` command (`gcode_move.get_status()['gcode_position']`) will
+report the last g-code position relative to the current g-code
+coordinate system.
The "gcode base" is the location of the g-code origin in cartesian
coordinates relative to the coordinate system specified in the config
diff --git a/docs/Config_Changes.md b/docs/Config_Changes.md
index e0cc4c03..13257326 100644
--- a/docs/Config_Changes.md
+++ b/docs/Config_Changes.md
@@ -6,6 +6,11 @@ All dates in this document are approximate.
# Changes
+20200816: The gcode macro `printer.gcode` object has been renamed to
+`printer.gcode_move`. Several undocumented variables in
+`printer.toolhead` and `printer.gcode` have been removed. See
+docs/Command_Templates.md for a list of available template variables.
+
20200816: The gcode macro "action_" system has changed. Replace any
calls to `printer.gcode.action_emergency_stop()` with
`action_emergency_stop()`, `printer.gcode.action_respond_info()` with