From 4c5e93d51dca2393946a67646499fef5fdd034b0 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 5 Aug 2020 11:43:45 -0400 Subject: 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 --- docs/Code_Overview.md | 6 +++--- docs/Config_Changes.md | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'docs') 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 -- cgit v1.2.3-70-g09d2